kotlinx-cli icon indicating copy to clipboard operation
kotlinx-cli copied to clipboard

Allow ArgType.Choice for Enums to limit list of values

Open tjerkw opened this issue 2 years ago • 1 comments

Makes it easier to use a subset of enum values for a certain enum as a Choice ArgType

tjerkw avatar Feb 13 '23 15:02 tjerkw

I believe this new feature requires tests, a positive and a negative one (e.g. failing on a value not belonging to the subset)

I agree, but dont have the time/resources todo that now.

tjerkw avatar Feb 15 '23 09:02 tjerkw