Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 27325:eadbbd14bdc1
help: fix help -c/help -e/help -k
Before, hg help -c was the same as hg help, now it only shows commands.
Before, hg help -e was the same as hg help, now it only shows extensions.
Before, hg help -k crashed, now it shows all topics.
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 09 Dec 2015 05:56:54 +0000 |
parents | 77850d2a161c |
children | 1c1216182dc1 |
line wrap: on
line diff
--- 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')