-
-
Notifications
You must be signed in to change notification settings - Fork 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
Support about
for possible_values
e.g. ArgEnum
#2731
Comments
abbout
for possible_values
e.g. ArgEnum
about
for possible_values
e.g. ArgEnum
The challenge is the derive API is built on top of the builder API, so we need to come up with a way to specify this within the builder API. Possibly a variant of |
Tho this is not very builder like :D but as that is probably the only information you would want to attach to a possible_value it makes sense. I could also imagine somthing more like this (somewhat verbose if there can only be
Another option would be to do it via
When using
Internally this would need to be stored in a Vec of Tuples. |
I drafted an Implementation in #2733 using the |
Clap Version
master
Describe your use case
Sometimes the value itself my not give enough information to the user, therefore it would be helpful to be able to show and additional about in e.g. fish completions.
Fish does that for example for
__fish_complete_users
:Describe the solution you'd like
Support adding abouts/documentation for the possible completion values.
For
ArgEnum
:This should result in the following completions in fish for example:
Additional Context
For fish this is somewhat related to #2730
The text was updated successfully, but these errors were encountered: