Package org.kohsuke.args4j
Annotation Type Argument
-
@Retention(RUNTIME) @Target({FIELD,METHOD,PARAMETER}) public @interface Argument
Argument of the command line. This works mostly likeOption
except the following differences.- Arguments have an index about their relative position on the command line.
- Author:
- Kohsuke Kawaguchi, Mark Sinke
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends OptionHandler>
handler
SeeOption.handler()
.boolean
hidden
SeeOption.hidden()
.int
index
Position of the argument.java.lang.String
metaVar
SeeOption.metaVar()
.boolean
multiValued
boolean
required
SeeOption.required()
.java.lang.String
usage
SeeOption.usage()
.
-
-
-
Element Detail
-
usage
java.lang.String usage
SeeOption.usage()
.- Default:
- ""
-
-
-
metaVar
java.lang.String metaVar
SeeOption.metaVar()
.- Default:
- ""
-
-
-
required
boolean required
SeeOption.required()
.- Default:
- false
-
-
hidden
boolean hidden
SeeOption.hidden()
.- Default:
- false
-
-
-
handler
java.lang.Class<? extends OptionHandler> handler
SeeOption.handler()
.- Default:
- org.kohsuke.args4j.spi.OptionHandler.class
-
-