We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cedce9 commit 76705edCopy full SHA for 76705ed
src/bin/cargo/cli.rs
@@ -440,6 +440,9 @@ pub fn cli() -> Command {
440
"cargo [OPTIONS] [COMMAND]"
441
};
442
Command::new("cargo")
443
+ // Subcommands all count their args' display order independently (from 0),
444
+ // which makes their args interspersed with global args. This puts global args last.
445
+ .next_display_order(1000)
446
.allow_external_subcommands(true)
447
// Doesn't mix well with our list of common cargo commands. See clap-rs/clap#3108 for
448
// opening clap up to allow us to style our help template
0 commit comments