argh
argh copied to clipboard
Negative switches
My project has a use case for negative switch flags. E.g:
--action // Sets args.action to true --noaction // Sets args.action to false
Yes, we could add the two flags ourselves, but then we'd have to handle the parsing logic and possibility of conflicts manually, and we'd have to implement it for every switch or else be inconsistent in our UX.
I would rather see a negative flag added as part of the macro for the switch type automatically, and have integrated checks to ensure the positive and negative aren't both included.