diff options
| author | Christian Berendt <berendt@b1-systems.de> | 2012-11-08 23:33:14 +0100 |
|---|---|---|
| committer | Christian Berendt <berendt@b1-systems.de> | 2012-11-08 23:33:14 +0100 |
| commit | 79dc21d17183fa78126515f9d8436c207fbed7b7 (patch) | |
| tree | a695ca2bfb0260328ecc7b9023e53449586a39f0 /cinderclient | |
| parent | 112bd60d4e17ad435c274d52585f70faaaf9f70d (diff) | |
| download | python-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.py | 2 |
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 |
