required_if_eq
doesn't respect global arguments
#4941
Labels
A-parsing
Area: Parser's logic and needs it changed somehow.
A-validators
Area: ArgMatches validation logi
C-bug
Category: Updating dependencies
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
Please complete the following tasks
Rust Version
rustc 1.69.0 (84c898d65 2023-04-16)
Clap Version
4.3.0
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
Success
printedExpected Behaviour
Additional Context
TLDR:
cargo r -q -- --json cleanup_tokens
doesn't workcargo r -q -- cleanup_tokens --json
does.Debug Output
The text was updated successfully, but these errors were encountered: