Skip to content
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

Negative switches #150

Open
doughertyda opened this issue Nov 3, 2022 · 0 comments
Open

Negative switches #150

doughertyda opened this issue Nov 3, 2022 · 0 comments

Comments

@doughertyda
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant