help: improve command summary hint

This adds our normal hint parentheses, corrects the command syntax
(consider config), and corrects the fullness of help you'll get.
This commit is contained in:
Matt Mackall 2014-08-12 03:09:26 -05:00
parent 540b8eb745
commit 106c32f507
7 changed files with 7 additions and 7 deletions

View File

@ -293,7 +293,7 @@ def help_(ui, name, unknowncmd=False, full=True, **opts):
if not ui.verbose:
if not full:
rst.append(_('\nuse "hg help %s" to show the full help text\n')
rst.append(_('\n(use "hg %s -h" to show more help)\n')
% name)
elif not ui.quiet:
rst.append(_('\n(some details hidden, use --verbose '

View File

@ -370,7 +370,7 @@ invalid arguments
alias for: hg root
use "hg help rt" to show the full help text
(use "hg rt -h" to show more help)
[255]
invalid global arguments for normal commands, aliases, and shell aliases

View File

@ -29,7 +29,7 @@ Missing arg:
[+] marked option can be specified multiple times
use "hg help cat" to show the full help text
(use "hg cat -h" to show more help)
[255]
[defaults]

View File

@ -543,7 +543,7 @@ Test help topic with same name as extension
multirevs command
use "hg help multirevs" to show the full help text
(use "hg multirevs -h" to show more help)
[255]

View File

@ -440,7 +440,7 @@ Test help option with version option
[+] marked option can be specified multiple times
use "hg help add" to show the full help text
(use "hg add -h" to show more help)
[255]
Test ambiguous command help

View File

@ -99,7 +99,7 @@ qrecord (mq not present)
interactively record a new patch
use "hg help qrecord" to show the full help text
(use "hg qrecord -h" to show more help)
[255]
qrecord patch (mq not present)

View File

@ -547,5 +547,5 @@ Make sure no one adds back a -b option:
[+] marked option can be specified multiple times
use "hg help strip" to show the full help text
(use "hg strip -h" to show more help)
[255]