Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 21961:af15de6775c7 stable
help: always show command help with -h (issue4240)
Old behavior:
hg help x hg x -h hg help -e x hg help -c x
config topic topic (!) - cmd
showconfig cmd topic (!) - cmd
rebase cmd cmd ext cmd
New behavior:
hg help x hg x -h hg help -e x hg help -c x
config topic cmd - cmd
showconfig cmd cmd - cmd
rebase cmd cmd ext cmd
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 31 Jul 2014 14:31:31 -0500 |
parents | 57c70d3ad1c9 |
children | bc2132dfc0a4 d821fff9b0b9 |
comparison
equal
deleted
inserted
replaced
21960:2896d450fec4 | 21961:af15de6775c7 |
---|---|
764 ui_.setconfig('web', 'cacerts', '', '--insecure') | 764 ui_.setconfig('web', 'cacerts', '', '--insecure') |
765 | 765 |
766 if options['version']: | 766 if options['version']: |
767 return commands.version_(ui) | 767 return commands.version_(ui) |
768 if options['help']: | 768 if options['help']: |
769 return commands.help_(ui, cmd) | 769 return commands.help_(ui, cmd, command=True) |
770 elif not cmd: | 770 elif not cmd: |
771 return commands.help_(ui, 'shortlist') | 771 return commands.help_(ui, 'shortlist') |
772 | 772 |
773 repo = None | 773 repo = None |
774 cmdpats = args[:] | 774 cmdpats = args[:] |