quit and print usage when unsupported version specified.

bug 974835

Change-Id: Iddbf72281be0d4dd819b6f51cc7950d90af0dbbc
This commit is contained in:
Yong Sheng Gong
2012-05-24 14:59:32 +08:00
parent bc2d6a66f0
commit f5035b3410

View File

@@ -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()