diff options
| author | Yong Sheng Gong <gongysh@cn.ibm.com> | 2012-05-24 14:59:32 +0800 |
|---|---|---|
| committer | Yong Sheng Gong <gongysh@cn.ibm.com> | 2012-05-24 14:59:32 +0800 |
| commit | f5035b341009505bf4f24c52a3aae548a6b238ea (patch) | |
| tree | 123ef506462de54eb0c46793a49ee4ae1ee7fc4d /quantumclient | |
| parent | bc2d6a66f0fbcb23b2e9782352b9477a85950ef2 (diff) | |
| download | python-neutronclient-f5035b341009505bf4f24c52a3aae548a6b238ea.tar.gz | |
quit and print usage when unsupported version specified.
bug 974835
Change-Id: Iddbf72281be0d4dd819b6f51cc7950d90af0dbbc
Diffstat (limited to 'quantumclient')
| -rwxr-xr-x | quantumclient/cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantumclient/cli.py b/quantumclient/cli.py index 1636639..6c14f63 100755 --- a/quantumclient/cli.py +++ b/quantumclient/cli.py @@ -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() |
