AppSettings::SubcommandRequiredElseHelp affects "leaf" subcommands that don't have own subcommands #3270
Closed
2 tasks done
Labels
A-builder
Area: Builder API
C-bug
Category: Updating dependencies
S-duplicate
Status: Closed as Duplicate
Please complete the following tasks
Rust Version
rustc 1.57.0 (f1edd0429 2021-11-29)
Clap Version
3.0.5
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- parent child
Actual Behaviour
A help message is displayed and program exists with status 2.
Expected Behaviour
This code should not trigger an error because commands that don't have subcommands should not be affected by this flag.
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: