Module com.github.rvesse.airline
Annotation Interface AllowedValues
Annotation that marks that the option/arguments are restricted to a given set
of values
Unlike AllowedRawValues
this restriction works against the values
after they have been converted into Java objects and thus can provide more
accurate restriction than AllowedValues
can provide. The trade off is
that enforcing this restriction is marginally more complex because it
requires parsing the allowed values.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
If provided restricts the values for the option to the given set of values
-
Element Details
-
allowedValues
String[] allowedValuesIf provided restricts the values for the option to the given set of values- Returns:
- Allowed values
- Default:
{}
-