@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
public @interface Option
Modifier and Type | Optional Element and Description |
---|---|
boolean |
common
Is this an Option common to all command line programs.
|
java.lang.String |
doc
Text that appears for this option in text describing usage of the command line program.
|
int |
maxElements
The maximum number of times this option is allowed.
|
int |
minElements
The minimum number of times that this option is required.
|
java.lang.String[] |
mutex
Array of option names that cannot be used in conjunction with this one.
|
boolean |
optional
If set to false, an exception will be thrown if the option is not specified.
|
boolean |
overridable
This boolean determines if this annotation overrides a parent annotation.
|
int |
printOrder
Overwrite default order in which Option are printed in usage by explicitly setting a
print position e.g.
|
java.lang.String |
shortName
The name of the option as it would appear on the command line.
|
public abstract java.lang.String shortName
public abstract java.lang.String doc
public abstract boolean optional
public abstract java.lang.String[] mutex
public abstract int minElements
public abstract int maxElements
public abstract boolean common
public abstract boolean overridable
public abstract int printOrder