Skip to content

Commit 0d27188

Browse files
authored
Merge pull request #4465 from epage/help
fix(help): Clarify that 'help' command accepts multiple
2 parents 6cbe5c4 + 9376a57 commit 0d27188

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/builder/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4287,7 +4287,7 @@ impl Command {
42874287
.action(ArgAction::Append)
42884288
.num_args(..)
42894289
.value_name("COMMAND")
4290-
.help("The subcommand whose help message to display"),
4290+
.help("Print help for the subcommand(s)"),
42914291
)
42924292
};
42934293
self._propagate_subcommand(&mut help_subcmd);

tests/builder/help.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ Print this message or the help of the given subcommand(s)
19891989
Usage: myapp help [COMMAND]...
19901990
19911991
Arguments:
1992-
[COMMAND]... The subcommand whose help message to display
1992+
[COMMAND]... Print help for the subcommand(s)
19931993
";
19941994

19951995
let cmd = Command::new("myapp")
@@ -2006,7 +2006,7 @@ Print this message or the help of the given subcommand(s)
20062006
Usage: myapp subcmd help [COMMAND]...
20072007
20082008
Arguments:
2009-
[COMMAND]... The subcommand whose help message to display
2009+
[COMMAND]... Print help for the subcommand(s)
20102010
";
20112011

20122012
let cmd = Command::new("myapp")
@@ -2054,7 +2054,7 @@ Print this message or the help of the given subcommand(s)
20542054
Usage: myapp help [COMMAND]...
20552055
20562056
Arguments:
2057-
[COMMAND]... The subcommand whose help message to display
2057+
[COMMAND]... Print help for the subcommand(s)
20582058
";
20592059

20602060
let cmd = Command::new("myapp")
@@ -2561,7 +2561,7 @@ Print this message or the help of the given subcommand(s)
25612561
Usage: example help [COMMAND]...
25622562
25632563
Arguments:
2564-
[COMMAND]... The subcommand whose help message to display
2564+
[COMMAND]... Print help for the subcommand(s)
25652565
",
25662566
false,
25672567
);
@@ -2603,7 +2603,7 @@ Print this message or the help of the given subcommand(s)
26032603
Usage: example help [COMMAND]...
26042604
26052605
Arguments:
2606-
[COMMAND]... The subcommand whose help message to display
2606+
[COMMAND]... Print help for the subcommand(s)
26072607
",
26082608
false,
26092609
);

0 commit comments

Comments
 (0)