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

Consider supporting true/false values for flag parameters by default #148

Open
tarekoraby opened this issue Mar 7, 2024 · 0 comments
Open

Comments

@tarekoraby
Copy link

Flag parameters are enabled/disabled by either being present or not. That is, flag types default to --<PARAMETER_NAME> when set to true. When set to false, nothing is passed.

If I want to pass a flag with the value false, I will need to use a special version of the pass-as property:

  • pass-true-as: --<PARAMETER_NAME>=true
  • pass-false-as: --<PARAMETER_NAME>=false

But as the true/false dichotomy is a natural interpretation of flags, we should consider supporting these values for flags out of the box (without asking people to use any special pass-true or pass-false syntax).

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