@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface Option
Modifier and Type | Optional Element and Description |
---|---|
Class |
convert
A conversion closure to convert the incoming String into the desired object
|
String |
defaultValue
The default value for this option as a String; subject to type conversion and 'convert'.
|
String |
description
The description of this option
|
String |
longName
The long name of this option.
|
int |
numberOfArguments
How many arguments this option has.
|
String |
numberOfArgumentsString
How many arguments this option has represented as a String.
|
boolean |
optionalArg
Whether this option can have an optional argument.
|
String |
shortName
The short name of this option.
|
String |
valueSeparator
The value separator for this multi-valued option.
|
public abstract String description
public abstract String shortName
public abstract String longName
public abstract String valueSeparator
public abstract boolean optionalArg
public abstract int numberOfArguments
numberOfArgumentsString
is set.public abstract String numberOfArgumentsString
numberOfArguments
if set.
The special values of '+' means one or more and '*' as 0 or more.public abstract String defaultValue
public abstract Class convert