public interface CliParser
parse the command-line arguments of a main-program.CliClass| Modifier and Type | Field and Description |
|---|---|
static char |
CHAR_OPTION
The option prefix character.
|
static String |
END_OPTIONS
|
static String |
PREFIX_LONG_OPTION
|
static String |
PREFIX_SHORT_OPTION
|
| Modifier and Type | Method and Description |
|---|---|
CliModeObject |
parseParameters(String... parameters)
|
void |
printHelp(Appendable target)
This method prints the help (program usage) generated from the annotations to the given
Appendable using
default settings. |
void |
printHelp(Appendable target,
CliOutputSettings settings)
This method prints the help (program usage) generated from the annotations to the given
Appendable using
the given settings. |
static final char CHAR_OPTION
static final String PREFIX_SHORT_OPTION
static final String PREFIX_LONG_OPTION
static final String END_OPTIONS
options are complete and arguments will
follow. This allows to specify an argument that is equal to an option (e.g. "cat -- --help" would print the
contents of a file named "--help" rather that printing the help usage output).void printHelp(Appendable target)
Appendable using
default settings.target - is the Appendable where to print to.printHelp(Appendable, CliOutputSettings)void printHelp(Appendable target, CliOutputSettings settings)
Appendable using
the given settings.target - is the Appendable where to print to.settings - are the CliOutputSettings used to configure the output.CliModeObject parseParameters(String... parameters) throws CliException
options and
arguments to the Pojo that was supplied when
building this parser.parameters - are the command-line arguments of the main-program.mode that was triggered.CliException - if the given arguments are invalid.Copyright © 2001–2016 mmm-Team. All rights reserved.