@IgnoreInWholeProgramInference
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Option
The command-line options are processed by the Options
class. For
example usage, see the documentation for Options
.
Options
,
OptionGroup
,
Unpublicized
,
OptionsDoclet
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
A string that describes the option.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
aliases
Aliases for this option, which a user can use instead of the option's standard name.
|
boolean |
noDocDefault
If true,
OptionsDoclet does not report the field's default value. |
public abstract java.lang.String value
[-c] [<type>] description
":
<type>
" is an optional description of the option type, to be displayed instead
of its Java type (e.g., "<filename>
" if the variable's type is String). The
less-than and greater-than symbols are required.
@Option
description.
Option
public abstract java.lang.String[] aliases
Options
. If there is only a single, one-character alias, it can be put at
the beginning of the value field without the need for an aliases field.public abstract boolean noDocDefault
OptionsDoclet
does not report the field's default value.