Skip to content

Commit

Permalink
quit and print usage when unsupported version specified.
Browse files Browse the repository at this point in the history
bug 974835

Change-Id: Iddbf72281be0d4dd819b6f51cc7950d90af0dbbc
  • Loading branch information
Yong Sheng Gong committed May 24, 2012
1 parent bc2d6a6 commit f5035b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quantumclient/cli.py
Expand Up @@ -280,7 +280,8 @@ def main():
version = options.version
if not version in commands:
LOG.error("Unknown API version specified:%s", version)
print "Unknown API version: %s" % version
parser.print_help()
sys.exit(1)

if len(args) < 1:
parser.print_help()
Expand Down

0 comments on commit f5035b3

Please sign in to comment.