Can enum fields show their value in the help? #312
-
To show the user what are valid enum values, one can repeat them in the help string itself, or let the user fail and see the full error message which then mentions what the allowed values are. Is there a way to show the valid values in the help string without having the user first try and fail? |
Beta Was this translation helpful? Give feedback.
Answered by
alecthomas
Jun 14, 2022
Replies: 1 comment 2 replies
-
Yes you can use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
shlomi-dr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can use
${enum}
in the help string. It's poorly documented here, but could use some improvement in hindsight.