~ubuntu-core-dev/eucalyptus/euca2ools

« back to all changes in this revision

Viewing changes to bin/euca-modify-image-attribute

  • Committer: Dustin Kirkland
  • Date: 2010-03-05 22:57:00 UTC
  • Revision ID: kirkland@x200-20100305225700-sweq2pmfn7mxx4df
  - LP: #531076 - fix euca-describe-instances against one instance
  - LP: #526591 - fix config file parsing

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
"""
59
59
 
60
60
 
61
 
def usage():
 
61
def usage(status=1):
62
62
    print usage_string
63
63
    Util().usage(compat=True)
64
64
 
65
65
def version():
66
66
    print Util().version()
67
 
    sys.exit()
 
67
    sys.exit(status)
68
68
 
69
69
def main():
70
70
    euca = None
99
99
            entity = value      
100
100
            operation_type = 'remove'
101
101
        elif name in ('-h', '--help'):
102
 
            usage()
 
102
            usage(0)
103
103
        elif name == '--version':
104
104
            version()
105
105