mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
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:
parent
540b8eb745
commit
106c32f507
@ -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 '
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user