summaryrefslogtreecommitdiff
path: root/heatclient/shell.py
diff options
context:
space:
mode:
authorJUNJIE NAN <nanjj@cn.ibm.com>2014-03-02 10:38:54 +0800
committerJUNJIE NAN <nanjj@cn.ibm.com>2014-03-02 17:27:18 +0800
commitaa30e4642a5e71b6149dfc29821d4d85da410cc9 (patch)
treeef80e676b03304b3d918a74bb1f5e7b467545071 /heatclient/shell.py
parentb048b1a5bd7508e35e955dff8bd176b76bbb7354 (diff)
downloadpython-heatclient-aa30e4642a5e71b6149dfc29821d4d85da410cc9.tar.gz
Enable --help for each command
Now heat stack-create --help outputs same with heat --help. It should output the help message for stack-create instead of the global one. Change-Id: I1b451ddb4ecba3bb3294ff3219a5ecad394ada9e
Diffstat (limited to 'heatclient/shell.py')
-rw-r--r--heatclient/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/shell.py b/heatclient/shell.py
index 4e5444a..b1ee0a9 100644
--- a/heatclient/shell.py
+++ b/heatclient/shell.py
@@ -295,7 +295,7 @@ class HeatShell(object):
# Handle top-level --help/-h before attempting to parse
# a command off the command line
- if options.help or not argv:
+ if not args and options.help or not argv:
self.do_help(options)
return 0