~ubuntu-core-dev/eucalyptus/euca2ools

« back to all changes in this revision

Viewing changes to bin/euca-delete-keypair

  • 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:
49
49
"""
50
50
 
51
51
 
52
 
def usage():
 
52
def usage(status=1):
53
53
    print usage_string
54
54
    Util().usage()
55
 
    sys.exit()
 
55
    sys.exit(status)
56
56
 
57
57
def version():
58
58
    print Util().version()
74
74
 
75
75
    for name, value in euca.opts:
76
76
        if name in ('-h', '--help'):
77
 
            usage()
 
77
            usage(0)
78
78
        elif name == '--version':
79
79
            version()
80
80