Bug 1184780 - Use command help instead of main help; r=gps

--HG--
extra : commitid : MLpRMrje13
extra : amend_source : ff2038edce79b1b610be52e2908681d6de5edda2
This commit is contained in:
Supradeep T R 2015-07-17 13:42:12 -07:00
parent d78e47a8b5
commit 8d41cd6385

View File

@ -105,10 +105,10 @@ class CommandAction(argparse.Action):
# -- is in command arguments
if '-h' in args[:args.index('--')] or '--help' in args[:args.index('--')]:
# Honor -h or --help only if it appears before --
self._handle_main_help(parser, command)
self._handle_command_help(parser, command)
sys.exit(0)
else:
self._handle_main_help(parser, command)
self._handle_command_help(parser, command)
sys.exit(0)