mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Auto merge of #12418 - weihanglo:help-text, r=ehuss
fix: align `cargo --help` text
This commit is contained in:
commit
c91a693e79
@ -518,7 +518,7 @@ pub fn cli() -> Command {
|
|||||||
let usage = if is_rustup {
|
let usage = if is_rustup {
|
||||||
"cargo [+toolchain] [OPTIONS] [COMMAND]\n cargo [+toolchain] [OPTIONS] -Zscript <MANIFEST_RS> [ARGS]..."
|
"cargo [+toolchain] [OPTIONS] [COMMAND]\n cargo [+toolchain] [OPTIONS] -Zscript <MANIFEST_RS> [ARGS]..."
|
||||||
} else {
|
} else {
|
||||||
"cargo [OPTIONS] [COMMAND]\n cargo [OPTIONS] -Zscript <MANIFEST> [ARGS]..."
|
"cargo [OPTIONS] [COMMAND]\n cargo [OPTIONS] -Zscript <MANIFEST_RS> [ARGS]..."
|
||||||
};
|
};
|
||||||
Command::new("cargo")
|
Command::new("cargo")
|
||||||
// Subcommands all count their args' display order independently (from 0),
|
// Subcommands all count their args' display order independently (from 0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user