-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ArgEnum support hidden
attribute
#2756
Comments
Hmm.. can probably be implemented something similar to #2733. But looking at all these issues, do we need an |
I thought this could be implemented by just omitting it from the possible_values function, but that is used for validation as well if I understand your answer correctly? |
Yup, try the |
I've been considering some related API problems and I was wondering if we should have an
We'd then change the signature for fn possible_values(values: impl Iterator<Item=impl Into<ArgValue>>) where
|
Design looks good to me. |
This would be a breaking change, technically. Should we tag with 3.0? Oh, and it should be |
I experimented in #2758 with something very similar, I would "upgrade" that to the proposed implementation. |
Please complete the following tasks
Clap Version
master
Describe your use case
I want to hide one value in an ArgEnum from for example
[possible values: GitHub, Test]
Describe the solution you'd like
I would like to write this, and only have GitHub show up:
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: