@Retention(RUNTIME) @Target(FIELD) @Documented public @interface Option
Modifier and Type | Optional Element | Description |
---|---|---|
boolean |
common |
Is this an Option common to all command line programs.
|
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.
|
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.
|
String |
shortName |
The name of the option as it would appear on the command line.
|
String shortName
String doc
boolean optional
String[] mutex
boolean common
boolean overridable
int printOrder