quit and print usage when unsupported version specified.
bug 974835 Change-Id: Iddbf72281be0d4dd819b6f51cc7950d90af0dbbc
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user