Closed
Conversation
Member
|
The issue would be the place to discuss whether this is a feature that's desired at all. It's still not clear why this is beneficial. |
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add option booleanBoth (couldn't find a better name).
opts.booleanBoth- A boolean, string, or array of strings to always treat as booleans. Iftruewill treat all double hyphenated and single hyphenated arguments without equal signs as boolean (e.g. affects--fooand-f, not--foo=baror-f=bar). A boolean option will consume the following argument if it is the stringtrueorfalse(e.g.--foo false).It may be better to add
opts.booleanSingle(e.g. affects-f, not-f=b,--fooor--foo=bar) as complementary toopts.booleaninstead ofopts.booleanBothwhich intersects. But the idea came to me once I had already programmed everything.I'm an amateur programmer, so the code needs improvement.
#75