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
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
Comment by pksunkara Monday Nov 15, 2021 at 21:25 GMT
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue by andrewhickman
Monday Nov 15, 2021 at 21:10 GMT
Originally opened as clap-rs/clap#3031
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: