-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boolean handling is confusing #231
Comments
I did want to add that I've used several Scala command line parsers, and case-app is easily my favorite—thanks! |
@balhoff It is possible to pass an explicit value to boolean options, like |
@alexarchambault thank you for pointing that out, I completely missed that it was possible to use |
Yes, |
Thanks! I'll leave it up to you if you want to go ahead and close this. It would be great to add that to the docs if it isn't somewhere already. |
If an option type is boolean, and a default value of
true
is provided, there doesn't seem to be a way to set it to false on the command line:For the case of
res3
above, I would expect to be able to explicitly passfalse
, although I can get afalse
value by not providing the argument at all (e.g.res0
). Unexpectedly--enable-foo false
sets the value totrue
, because "false" is treated as an extra argument.For the case of the default true value (
Options2
), there doesn't seem to be any command line that can set it to false.The text was updated successfully, but these errors were encountered: