mercurial/dispatch.py
changeset 27325 eadbbd14bdc1
parent 27113 77850d2a161c
child 27516 1c1216182dc1
--- a/mercurial/dispatch.py	Wed Dec 09 19:09:35 2015 +0000
+++ b/mercurial/dispatch.py	Wed Dec 09 05:56:54 2015 +0000
@@ -854,7 +854,7 @@
     if options['version']:
         return commands.version_(ui)
     if options['help']:
-        return commands.help_(ui, cmd, command=True)
+        return commands.help_(ui, cmd, command=cmd is not None)
     elif not cmd:
         return commands.help_(ui, 'shortlist')