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
Hey Guys
It's so missing.... there are so many times I want to use a switch,
and right the way to achieve this is to use normal arguments adding them a value just to
make a switch.
The justification for this has been discussed #108. I have working code but I'd like to open a discussion before opening a PR.
Proposal 1
Proof of concept implementation:
https://github.com/ntkme/commander.js/compare/master...ntkme:optional-switch
Pros
Cons
Proposal 2
Proof of concept implementation:
https://github.com/ntkme/commander.js/compare/master...ntkme:boolean-switch
Pros
Cons
.parse()
(breaking change, not a good idea)The text was updated successfully, but these errors were encountered: