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 Sep 14, 2023. It is now read-only.
It is only necessary for f64 but not for, say, u64. In fact, I have the following struct where both flags are optional, just that I need to wrap the f64 in an Option<>, which is not necessary for u64.
The conservative choice here is to permit f64 for optional arguments/flags by filling it in with a default value of 0. I find this unfortunate, because I'd rather be forced to use an Option to express an optional parameter.
Another possibility is to use Docopt's default value feature, e.g., [default 0.0], which should get filled in automatically without the need of Option<f64>.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reported by @SuperFluffy #128 (comment)
The text was updated successfully, but these errors were encountered: