Mercurial > hg-stable
changeset 22111:aa5e256839d5
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.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 03:09:26 -0500 |
parents | 26f7c8033bed |
children | d968f4741a22 |
files | mercurial/help.py tests/test-alias.t tests/test-dispatch.t tests/test-extension.t tests/test-help.t tests/test-qrecord.t tests/test-strip.t |
diffstat | 7 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Tue Aug 12 03:01:37 2014 -0500 +++ b/mercurial/help.py Tue Aug 12 03:09:26 2014 -0500 @@ -293,7 +293,7 @@ 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 '
--- a/tests/test-alias.t Tue Aug 12 03:01:37 2014 -0500 +++ b/tests/test-alias.t Tue Aug 12 03:09:26 2014 -0500 @@ -370,7 +370,7 @@ 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
--- a/tests/test-dispatch.t Tue Aug 12 03:01:37 2014 -0500 +++ b/tests/test-dispatch.t Tue Aug 12 03:09:26 2014 -0500 @@ -29,7 +29,7 @@ [+] 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]
--- a/tests/test-extension.t Tue Aug 12 03:01:37 2014 -0500 +++ b/tests/test-extension.t Tue Aug 12 03:09:26 2014 -0500 @@ -543,7 +543,7 @@ multirevs command - use "hg help multirevs" to show the full help text + (use "hg multirevs -h" to show more help) [255]
--- a/tests/test-help.t Tue Aug 12 03:01:37 2014 -0500 +++ b/tests/test-help.t Tue Aug 12 03:09:26 2014 -0500 @@ -440,7 +440,7 @@ [+] 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