|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface CliClass
A CliClass
is used to annotate a Java-class that holds the parameters
of a main-program that are parsed from the commandline arguments.
It declares the name of the program
and the additional
usage information
. This annotation is optional, however it
is recommended to declare it for the reason of documentation and maintenance.
If it is not present, the defaults will apply.
CliStyle
,
CliOption
,
CliArgument
,
AbstractMain
Optional Element Summary | |
---|---|
String |
name
The name of the main-program for the usage. |
String |
usage
A brief description of what this program actually does. |
public abstract String name
qualified classname
of the program is used. You can
set this explicitly if your main-program is always run from a front-end
shell-script or you do NOT want to annotate you main-program class but use
an externalized state object.
public abstract String usage
usage help
of the
program. If not set no additional custom description will be
printed
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |