summaryrefslogtreecommitdiff
path: root/cinderclient
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2012-11-08 23:33:14 +0100
committerChristian Berendt <berendt@b1-systems.de>2012-11-08 23:33:14 +0100
commit79dc21d17183fa78126515f9d8436c207fbed7b7 (patch)
treea695ca2bfb0260328ecc7b9023e53449586a39f0 /cinderclient
parent112bd60d4e17ad435c274d52585f70faaaf9f70d (diff)
downloadpython-cinderclient-79dc21d17183fa78126515f9d8436c207fbed7b7.tar.gz
show help when calling without arguments
When calling cinder without arguments you'll receive the following output: error: too few arguments Try 'cinder help ' for more information. With this change the help is also shown when calling cinder without arguments. I think that's the expected behavior. Change-Id: I8f46f67b7fef472ac344bb74f80cf1b77c4c4745
Diffstat (limited to 'cinderclient')
-rw-r--r--cinderclient/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/shell.py b/cinderclient/shell.py
index c24ef98..7af3805 100644
--- a/cinderclient/shell.py
+++ b/cinderclient/shell.py
@@ -324,7 +324,7 @@ class OpenStackCinderShell(object):
options.os_volume_api_version)
self.parser = subcommand_parser
- if options.help and len(args) == 0:
+ if options.help or not argv:
subcommand_parser.print_help()
return 0