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

[Ftr] Allow flags to be true when the value is not specified #132

Open
bkmeneguello opened this issue Oct 30, 2020 · 1 comment
Open

[Ftr] Allow flags to be true when the value is not specified #132

bkmeneguello opened this issue Oct 30, 2020 · 1 comment

Comments

@bkmeneguello
Copy link

Is your feature request related to a problem? Please describe.
Boolean flags should not require a value, this is very nonstandard in relation to other CLI

Describe the solution you'd like
I want a flag to be considered true if it's present, so xxx --flag should be true instead of xxx --flag=Y

Describe alternatives you've considered
My workaround to this feature is to use :with-flag but this creates the [no-]flag alternatives which pollute my options, since false is the default.

@bkmeneguello
Copy link
Author

For example, I need to create a pass-through CLI to parse kubectl options, it must be able to replace the original executable (a wapper), but :flag options do not work the same way

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