Match semantics of SubcommandRequiredElseHelp

This commit is contained in:
Jon Gjengset 2022-02-16 20:03:00 -08:00
parent dfda89a82e
commit 8f7ab52384
2 changed files with 2 additions and 0 deletions

View File

@ -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"))

View File

@ -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")