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.
--- 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
--- a/tests/test-qrecord.t Tue Aug 12 03:01:37 2014 -0500
+++ b/tests/test-qrecord.t Tue Aug 12 03:09:26 2014 -0500
@@ -99,7 +99,7 @@
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)
--- a/tests/test-strip.t Tue Aug 12 03:01:37 2014 -0500
+++ b/tests/test-strip.t Tue Aug 12 03:09:26 2014 -0500
@@ -547,5 +547,5 @@
[+] 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]