mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Match semantics of SubcommandRequiredElseHelp
This commit is contained in:
parent
dfda89a82e
commit
8f7ab52384
@ -6,6 +6,7 @@ pub fn cli() -> App {
|
||||
.about("Inspect configuration values")
|
||||
.after_help("Run `cargo help config` for more detailed information.\n")
|
||||
.subcommand_required(true)
|
||||
.arg_required_else_help(true)
|
||||
.subcommand(
|
||||
subcommand("get")
|
||||
.arg(Arg::new("key").help("The config key to display"))
|
||||
|
@ -7,6 +7,7 @@ pub fn cli() -> App {
|
||||
.about("Generate and display various kinds of reports")
|
||||
.after_help("Run `cargo help report` for more detailed information.\n")
|
||||
.subcommand_required(true)
|
||||
.arg_required_else_help(true)
|
||||
.subcommand(
|
||||
subcommand("future-incompatibilities")
|
||||
.alias("future-incompat")
|
||||
|
Loading…
x
Reference in New Issue
Block a user