Skip to content

Commit a74cff7

Browse files
authored
fix(cli): Refer to commands, not subcommands (#16226)
### What does this PR try to resolve? This makes us completely consistent on referring to cargo commands for the top-level commands. Fixes #10195 ### How to test and review this PR?
2 parents 1252c54 + d7e652b commit a74cff7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/bin/cargo/commands/help.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const COMPRESSED_MAN: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/man.tgz"
1414

1515
pub fn cli() -> Command {
1616
subcommand("help")
17-
.about("Displays help for a cargo subcommand")
17+
.about("Displays help for a cargo command")
1818
.arg(Arg::new("COMMAND").action(ArgAction::Set).add(
1919
clap_complete::ArgValueCandidates::new(|| {
2020
super::builtin()

src/bin/cargo/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn list_commands(gctx: &GlobalContext) -> BTreeMap<String, CommandInfo> {
212212
commands.insert(
213213
"help".to_string(),
214214
CommandInfo::BuiltIn {
215-
about: Some("Displays help for a cargo subcommand".to_string()),
215+
about: Some("Displays help for a cargo command".to_string()),
216216
},
217217
);
218218

tests/testsuite/cargo_help/help/stdout.term.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)