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
Add a no-
version of a boolean
#2075
Comments
Although this sounds like a good idea, I wonder if it’s needed in practice. In your above example, the |
Actually I want So
Or at the very least assume that this is not "normal" behaviour (note with |
I think your scenarios different than what I’m used to. So I probably don’t understand it well. Here’s how I imagine things.
|
@marckhouzam you have a correct example. The main purpose I see is the use of shell aliases. The concept is to allow someone to say the following (which I sort of do as well)
Then if I do
it translates to
So the But with the for example
will not do follow, but if I do an alias to make it follow
If I want to remove the follow for a command I would have no capability without retyping the whole command. If I had that
which translates to
And the command line processor will take the "last" version of the flag so make it equivalent to
|
I see your point. Thanks for the explanation. To do this automatically would require a flag rapper API because the flags are handled by the spf13/pflag project directly. |
Can you move this ticket there? |
Sorry but I’m not a maintainer for spf13/pflag |
Say I have
It would be nice to have a
--no-follow
automatically generated.The text was updated successfully, but these errors were encountered: