|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface RemainingArgs
Can be placed on at most one String[] or String field to catch any remaining arguments after any defined optional arguments. This is useful for command that have an unspecified number of trailing arguments.
Required Element Summary | |
---|---|
String |
description
A brief description desribing what should be supplied as arguments. |
String |
name
A short name of for the arguments. |
Optional Element Summary | |
---|---|
String |
defaultValue
The argument's default value. |
String |
displayName
Returns a display name for the arguments. |
boolean |
required
It is illegal to posistion a required argument after an optional one. |
boolean |
requoteForSingleString
Whether to requote and escape strings when applying remaining args to a single string value. |
Element Detail |
---|
public abstract String name
This is a short name that should contain no spaces.
public abstract String description
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 defaultValue
public abstract boolean required
public abstract boolean requoteForSingleString
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |