Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help.py @ 23624:861ddedfb402
help: suggest '-v -e' to get built-in aliases for extensions (issue4461)
If extension name matches one of command names, suggest user to type
'hg help -v -e <extension>' to get full list of built-in aliases
author | Chingis Dugarzhapov <chingis.dug@gmail.com> |
---|---|
date | Mon, 22 Dec 2014 03:20:50 +0100 |
parents | 149141c3a25f |
children | a3f2ea1d4943 |
line wrap: on
line diff
--- a/mercurial/help.py Thu Dec 18 10:11:38 2014 -0800 +++ b/mercurial/help.py Mon Dec 22 03:20:50 2014 +0100 @@ -371,6 +371,9 @@ elif name and not full: rst.append(_('\n(use "hg help %s" to show the full help ' 'text)\n') % name) + elif name and cmds and name in cmds.keys(): + rst.append(_('\n(use "hg help -v -e %s" to show built-in ' + 'aliases and global options)\n') % name) else: rst.append(_('\n(use "hg help -v%s" to show built-in aliases ' 'and global options)\n')