-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
How to treat all arguments with one hyphen and without equal signs as boolean? #75
Comments
There is not a configuration to change the treatment of automatic short flags. |
Short version: why do you want this? Long Version Reference: In general, I don't want lots of configuration options. For comparison, The decision as to whether The design specification for I understand minimist does not allow configuration so auto-detected options with one hyphen and without equal signs are treated as boolean. The key question is, why is this important? What is your use case to justify adding the configuration? |
An aside. I was a little surprised when I first saw the existing |
According to the README,
opts.boolean
doesn't work with-f
.This would work, but is there another way that doesn't imply patching?
The text was updated successfully, but these errors were encountered: