ArgMathces::args_present
behaviour with ArgAction::SetTrue
#5860
Labels
C-bug
Category: Updating dependencies
Please complete the following tasks
Rust Version
rustc 1.85.0-nightly
Clap Version
4.5.23
Minimal reproducible code
This code panic with message
No args were provided, but
args_present()
returns true, which I think counterintuitiveSteps to reproduce the bug with the above code
cargo run
Actual Behaviour
matches.args_present()
returns trueExpected Behaviour
matches.args_present()
returns false if no arguments were provided despiteArg::new("show").action(ArgAction::SetTrue)
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: