Module com.github.rvesse.airline
Annotation Interface AllowedRawValues
Annotation that marks that the option/arguments are restricted to a given set
of raw string values
If you instead want to limit values to be in a set of parsed values then you
should use the AllowedValues
annotation instead. However for simple
use cases this restriction will always be more efficient.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
If provided restricts the values for the option to the given set of valuesboolean
If true the case onallowedValues()
is ignoredThe locale used for comparisons
-
Element Details
-
allowedValues
String[] allowedValuesIf provided restricts the values for the option to the given set of values- Returns:
- Allowed values
- Default:
{}
-
ignoreCase
boolean ignoreCaseIf true the case onallowedValues()
is ignored- Returns:
- Ignore case
- Default:
false
-
locale
String localeThe locale used for comparisons- Returns:
- Locale BCP47 tag
- Default:
"en"
-