|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface Argument
Defines an argument that can be provided after the command options. Arguments can be defined as not required so long as they are not followed (according to the position attribute) by any required arguments.
Required Element Summary | |
---|---|
String |
name
A short name of for the argument. |
int |
position
The argument position on the command line. |
Optional Element Summary | |
---|---|
String |
defaultValue
The argument's default value. |
String |
description
A brief description desribing what should be supplied for this argument. |
String |
displayName
Returns a display name for the argument. |
boolean |
required
It is illegal to position a required argument after an optional one. |
String[] |
validOptions
Can be specified to limit the valid options. |
Element Detail |
---|
public abstract String name
This is a short name that should contain no spaces.
public abstract int position
Agument positions start at 1.
public abstract String displayName
This value can be used by user interfaces in place of
the actual argument name. When this value is omitted,
the name()
should be used.
public abstract String description
public abstract String defaultValue
public abstract boolean required
public abstract String[] validOptions
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |