-
Notifications
You must be signed in to change notification settings - Fork 16
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 args should be allowed as flags on the command line #17
Comments
I guess that this is not just at the level of the value parsing, but also the argument splitting. |
ehhh ... I've thought about this one before, but I'm not sure about it. The problem is, what to do when the default is true? I really don't want it to be a "toggle", b/c then you need to know what the default value is. And I don't like having a value which can only be turned on. what do you think about automatically adding another "switch" style option, "--no-schedule" ?? |
Lemme expand on my earlier comment.
The default value of OTOH, I think this syntax will lead to some double negatives. Eg., an argument might be |
When an argument is a boolean, the presence of the
--arg
on the command line should be enough to infertrue
, it shouldn't be mandatory to write--arg true
.e.g.
--schedule
flag, set to trueThe text was updated successfully, but these errors were encountered: