|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD,PARAMETER})
public @interface Argument
Argument of the command line.
This works mostly like Option except the following differences.
| Optional Element Summary | |
|---|---|
Class<? extends OptionHandler> |
handler
See Option.handler(). |
int |
index
Position of the argument. |
String |
metaVar
See Option.metaVar(). |
boolean |
multiValued
See Option.multiValued(). |
boolean |
required
See Option.required(). |
String |
usage
See Option.usage(). |
public abstract String usage
Option.usage().
public abstract String metaVar
Option.metaVar().
public abstract boolean required
Option.required().
public abstract Class<? extends OptionHandler> handler
Option.handler().
public abstract int index
If you define multiple single value properties to bind to arguments, they should have index=0, index=1, index=2, ... and so on.
Multi value properties bound to arguments must be always the last entry.
public abstract boolean multiValued
Option.multiValued().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||