choices
keith6014 opened this issue · comments
keith6014 commented
What is the preferred way to implment choices similar to argparse in python (https://docs.python.org/3/library/argparse.html#choices)
Alec Thomas commented
You want Enum().
keith6014 commented
Thanks for the prompt response.
I am doing
app.Flag("color","red,blue").Short('c').Enum("red","blue")
Is there a way to auto generate "red blue" when I do --help instead of putting in Flag()?
Alec Thomas commented
Alas, no.
keith6014 commented
Got it. That would be a nice feature.