Package groovy.cli
Annotation Type Option
- 
@Documented @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface OptionIndicates that a method or property can be used to set a CLI option. 
- 
- 
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.ClassconvertA conversion closure to convert the incoming String into the desired objectjava.lang.StringdefaultValueThe default value for this option as a String; subject to type conversion and 'convert'.java.lang.StringdescriptionThe description of this optionjava.lang.StringlongNameThe long name of this option.intnumberOfArgumentsHow many arguments this option has.java.lang.StringnumberOfArgumentsStringHow many arguments this option has represented as a String.booleanoptionalArgWhether this option can have an optional argument.java.lang.StringshortNameThe short name of this option.java.lang.StringvalueSeparatorThe value separator for this multi-valued option. 
 - 
 
- 
- 
- 
numberOfArgumentsString
java.lang.String numberOfArgumentsString
How many arguments this option has represented as a String. Only allowed for array-typed arguments. OverridesnumberOfArgumentsif set. The special values of '+' means one or more and '*' as 0 or more.- Returns:
 - the number of arguments (as a String)
 
- Default:
 - ""
 
 
 - 
 
 -