Skip to content

Commit

Permalink
Merge pull request #4465 from epage/help
Browse files Browse the repository at this point in the history
fix(help): Clarify that 'help' command accepts multiple
  • Loading branch information
epage committed Nov 8, 2022
2 parents 6cbe5c4 + 9376a57 commit 0d27188
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/builder/command.rs
Expand Up @@ -4287,7 +4287,7 @@ impl Command {
.action(ArgAction::Append)
.num_args(..)
.value_name("COMMAND")
.help("The subcommand whose help message to display"),
.help("Print help for the subcommand(s)"),
)
};
self._propagate_subcommand(&mut help_subcmd);
Expand Down
10 changes: 5 additions & 5 deletions tests/builder/help.rs
Expand Up @@ -1989,7 +1989,7 @@ Print this message or the help of the given subcommand(s)
Usage: myapp help [COMMAND]...
Arguments:
[COMMAND]... The subcommand whose help message to display
[COMMAND]... Print help for the subcommand(s)
";

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

let cmd = Command::new("myapp")
Expand Down Expand Up @@ -2054,7 +2054,7 @@ Print this message or the help of the given subcommand(s)
Usage: myapp help [COMMAND]...
Arguments:
[COMMAND]... The subcommand whose help message to display
[COMMAND]... Print help for the subcommand(s)
";

let cmd = Command::new("myapp")
Expand Down Expand Up @@ -2561,7 +2561,7 @@ Print this message or the help of the given subcommand(s)
Usage: example help [COMMAND]...
Arguments:
[COMMAND]... The subcommand whose help message to display
[COMMAND]... Print help for the subcommand(s)
",
false,
);
Expand Down Expand Up @@ -2603,7 +2603,7 @@ Print this message or the help of the given subcommand(s)
Usage: example help [COMMAND]...
Arguments:
[COMMAND]... The subcommand whose help message to display
[COMMAND]... Print help for the subcommand(s)
",
false,
);
Expand Down

0 comments on commit 0d27188

Please sign in to comment.