@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)
|
boolean |
flag
Whether or not the option can be use as a flag (meaning no value)
|
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
Copyright © 2015. All rights reserved.