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
Hmm.. that is weird. default_value_os and default_value should have been behaving the same. Maybe we changed something recently? Need to dig into it a bit more.
Yes, that is correct. Also, since I forgot to say this earlier, there is also the workaround to add required = false.
The remaining thing to resolve is how to handle several of the other default_value... cases. I'm assuming we shouldn't mark them as optional, leaving it to the user.
Please complete the following tasks
Rust Version
rustc 1.56.1 (59eed8a2a 2021-11-01)
Clap Version
3.0.0-beta.5
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run
Actual Behaviour
Panics with
Expected Behaviour
The behaviour should be the same as if I used
default_value = "123"
, i.e it exits successfully.Additional Context
No response
Debug Output
The text was updated successfully, but these errors were encountered: