Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(help): Clarify that 'help' command accepts multiple #4465

Merged
merged 1 commit into from Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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