@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface CommandLineOption
CommandLineOptions.| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
name
The name(s) that identify the option on the command line.
|
public abstract java.lang.String[] name
If the name starts with "--", then only the double-hyphen variant is recognized; if it starts with "-", then only the single-hyphen is recognized; otherwise, both variants are recognized.
If this element is not specified, then the name is derived from the method name as follows: An optional prefix
"set" or "add" is removed. The rest of the method name is converted from camel case into hyphen-separated
notation.
Example: If the method name is "setFooBar", then the following command line options are
recognized: "-foo-bar" and "--foo-bar".