Module com.github.rvesse.airline
Annotation Interface MaxOccurrences
Annotation that marks an option as being restricted to occurring some maximum
number of times (inclusive)
If you want to specify that the option may only occur at most once then you
can use the simpler Once
annotation instead.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
The maximum number of occurrences for this option
-
Element Details
-
occurrences
int occurrencesThe maximum number of occurrences for this optionZero or negative values are ignored
- Returns:
- Max occurrences (inclusive)
- Default:
0
-