diff mercurial/dispatch.py @ 14286:005a540e9aee

help: add -c/--command flag to only show command help (issue2799)
author Martin Geisler <mg@aragost.com>
date Tue, 10 May 2011 14:42:53 +0200
parents e4ab5ae193f2
children 08bfec2ef031
line wrap: on
line diff
--- a/mercurial/dispatch.py	Tue May 10 13:19:05 2011 +0200
+++ b/mercurial/dispatch.py	Tue May 10 14:42:53 2011 +0200
@@ -90,7 +90,7 @@
     except error.CommandError, inst:
         if inst.args[0]:
             ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1]))
-            commands.help_(ui, inst.args[0], full=False)
+            commands.help_(ui, inst.args[0], full=False, command=True)
         else:
             ui.warn(_("hg: %s\n") % inst.args[1])
             commands.help_(ui, 'shortlist')