@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Option
Argument
Modifier and Type | Optional Element and Description |
---|---|
boolean |
acceptMultipleValues
Whether or not the option accept multiple values.
|
boolean |
acceptValue
Whether or not the option accept a value.
|
String |
argName
The name of this argument (used in doc)
|
String[] |
choices
The set of choices accepted as values by this option.
|
boolean |
flag
Whether or not the option can be used as a flag (meaning no value)
|
boolean |
help
Whether or not this option is a "Help" option.
|
String |
longName
The name of the option (without the
-- prefix). |
boolean |
required
Whether or not the option is required.
|
String |
shortName
The short option name (without the
- prefix). |
public static final String NO_NAME
public abstract String longName
--
prefix).
Defaults to a name based on the setter namepublic abstract String shortName
-
prefix).
If not given the option has no short name.public abstract String argName
public abstract boolean acceptValue
public abstract boolean acceptMultipleValues
public abstract boolean flag
public abstract boolean help
public abstract String[] choices
Copyright © 2021 Eclipse. All rights reserved.