You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
I'd love a way to constrain a positional argument to "one of" a range of values only. For example, one of a selection of strings like "slow", "medium" or "fast" (for a --speed slow type argument). I couldn't see how to do it without just checking the string value afterwards (which is fine, but this seems like a common enough use case!)
The text was updated successfully, but these errors were encountered:
I'd love a way to constrain a positional argument to "one of" a range of values only. For example, one of a selection of strings like "slow", "medium" or "fast" (for a
--speed slow
type argument). I couldn't see how to do it without just checking the string value afterwards (which is fine, but this seems like a common enough use case!)The text was updated successfully, but these errors were encountered: