From 8d41cd63859f81b877546505fb200b4bc33d8fd8 Mon Sep 17 00:00:00 2001 From: Supradeep T R Date: Fri, 17 Jul 2015 13:42:12 -0700 Subject: [PATCH] Bug 1184780 - Use command help instead of main help; r=gps --HG-- extra : commitid : MLpRMrje13 extra : amend_source : ff2038edce79b1b610be52e2908681d6de5edda2 --- python/mach/mach/dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mach/mach/dispatcher.py b/python/mach/mach/dispatcher.py index 257e1f4d0ca8..315457f565c2 100644 --- a/python/mach/mach/dispatcher.py +++ b/python/mach/mach/dispatcher.py @@ -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)