|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| CliModeObject | This is a container for a CliMode together with additional associated
information. |
| CliParser | This is the interface used to parse the
command-line arguments of a main-program. |
| CliParserBuilder | This is the interface used to build a
CliParser from a given object. |
| Class Summary | |
|---|---|
| AbstractMain | This is the abstract base class for a main-program. |
| AbstractVersionedMain | This is the abstract base class for a main-program that
has a version. |
| CliOptionNameDefaultFilter | This is the default Filter used to decide if the
name or alias of a
CliOption is acceptable. |
| CliOutputSettings | This class represents the settings for the
help output. |
| Enum Summary | |
|---|---|
| CliContainerStyle | This enum contains the available styles for container types. |
| CliStyleHandling | This enum contains the available ways to handle a specific CLI-style. |
| Annotation Types Summary | |
|---|---|
| CliArgument | A CliArgument is used to annotate a property (member variable of some
class or setter-method) that should be set from a main-program via a
commandline argument. |
| 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. |
| CliMode | A CliMode is used to annotate a CLI annotated class
in order to define a operational mode. |
| CliModes | This annotation is used to annotate a CLI-Class with
multiple CliMode-annotations. |
| CliOption | A CliOption is used to annotate a property (member variable of some
class or setter-method) that should be set from a main-program via a
commandline option. |
| CliStyle | A CliStyle is used to annotated a Java-class that holds the
parameters of a main-program that are parsed from the commandline arguments. |
Provides the API for utilities that help to build command-line-interfaces (CLI).
public static void main(String[] args)However you quickly notice that this was NOT the end of wisdom when designing an object-oriented language as java. A main-program often starts easy and then over the time options and arguments are added. When you want to write a maintainable main-program you want to have more infrastructure than just having a string-array lost in a static method.
native-language-support of mmm, I
decided to rip the idea and simply re-implement it with all the features I
was missing.AbstractMain.String[] args). Such parameter is
either an option or a
value. A value can belong to an option
or an argument.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||