Advice on help menu that shows same possible enum values too often #5203
Answered
by
epage
fritzrehde
asked this question in
Q&A
Replies: 2 comments 13 replies
-
I would likely hide_possible_values and then manually list them in the after_help |
Beta Was this translation helpful? Give feedback.
9 replies
-
One last question regarding |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm working on
watchbind
and recently added aColor
enum (wrapper aroundratatui
sColor
type) for better parsing when customizing the style. I also want to show the user all possible values of this color enum in the help menu. However, what I would like to avoid, if possible, is displaying all color enum variants for all cli options that use this color as input. Here is my current-h
output:Any advice on how I could make this less verbose? Does clap have anything built-in to help me? Or are there conventions/best-practices I could follow?
Would love to hear your ideas! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions