You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo +nightly -Zscript clap-unknown-suggest-bug.rserror: unexpected argument '--ignored' found tip: a similar argument exists: '-- --ignored' tip: not much else to sayUsage: clap-unknown-suggest-bug [OPTIONS]For more information, try '--help'.
I had thought of this case but forgot it. The issue is we model a flag being present as a default_missing_value and not being present with default_value. In either case, we end up parsing a value.
Please complete the following tasks
Rust Version
rustc 1.72.0-beta.8 (598a0a3cb 2023-08-12)
Clap Version
4.3.22
Minimal reproducible code
Steps to reproduce the bug with the above code
See above cargo script.
Actual Behaviour
Expected Behaviour
Should not fail
Additional Context
cc #5075
Sorry I wasn't familiar with codebase enough to detect this bug during the review 😞.
Debug Output
No response
The text was updated successfully, but these errors were encountered: