comparison 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
comparison
equal deleted inserted replaced
23623:80a37f706011 23624:861ddedfb402
369 rst.append(_('\n(use "hg help" for the full list of commands ' 369 rst.append(_('\n(use "hg help" for the full list of commands '
370 'or "hg -v" for details)\n')) 370 'or "hg -v" for details)\n'))
371 elif name and not full: 371 elif name and not full:
372 rst.append(_('\n(use "hg help %s" to show the full help ' 372 rst.append(_('\n(use "hg help %s" to show the full help '
373 'text)\n') % name) 373 'text)\n') % name)
374 elif name and cmds and name in cmds.keys():
375 rst.append(_('\n(use "hg help -v -e %s" to show built-in '
376 'aliases and global options)\n') % name)
374 else: 377 else:
375 rst.append(_('\n(use "hg help -v%s" to show built-in aliases ' 378 rst.append(_('\n(use "hg help -v%s" to show built-in aliases '
376 'and global options)\n') 379 'and global options)\n')
377 % (name and " " + name or "")) 380 % (name and " " + name or ""))
378 return rst 381 return rst