Flag: Valid Args
Valid Args / Enums
Enums
Setting a flag with valid args limitation will verify the end user input with a preset set.
Totally the default value must be a string.
Define
.ValidArgs(...)
can do that.
Run
The result of the sample app above is:
额外的话题
How is this guide?
Edit on GitHub
Last updated on