Package | Description |
---|---|
net.sf.mmm.util.cli.base |
Contains the base-implementation of utilities that help to build command-line-interfaces (CLI).
|
Modifier and Type | Field and Description |
---|---|
private CliOptionContainer |
AbstractCliParser.CliOptionHelpInfo.option
The actual option.
|
Modifier and Type | Field and Description |
---|---|
private Map<String,CliOptionContainer> |
CliState.name2OptionMap |
private List<CliOptionContainer> |
CliState.optionList |
Modifier and Type | Method and Description |
---|---|
CliOptionContainer |
CliState.getOption(String nameOrAlias)
This method gets the
option associated with the given nameOrAlias . |
Modifier and Type | Method and Description |
---|---|
List<CliOptionContainer> |
CliState.getOptions()
This method gets the
List of CLI-options . |
Collection<CliOptionContainer> |
CliState.getOptions(CliModeObject mode)
|
Modifier and Type | Method and Description |
---|---|
private void |
CliState.addOption(CliOptionContainer optionContainer)
|
private void |
CliState.addOption(String nameOrAlias,
CliOptionContainer option)
|
protected void |
AbstractCliParser.checkOption(CliOptionContainer optionContainer)
This method checks a
CliOption for correctness. |
protected void |
AbstractCliParser.checkOptionName(String name,
CliOptionContainer optionContainer)
This method checks the given
name of the given option . |
protected void |
AbstractCliParser.handleUndefinedMode(CliOptionContainer option)
|
protected void |
AbstractCliParser.parseOption(AbstractCliParser.CliParserState parserState,
String option,
CliOptionContainer optionContainer,
CliParameterConsumer parameterConsumer)
This method parses the value of a
CliOption . |
Modifier and Type | Method and Description |
---|---|
private int |
AbstractCliParser.printHelpOptions(CliOutputSettings settings,
Map<CliOption,AbstractCliParser.CliOptionHelpInfo> option2HelpMap,
StringBuilder parameters,
Collection<CliOptionContainer> modeOptions)
Prints the options for the help usage output.
|
private void |
AbstractCliParser.CliHelpWriter.printOptions(Collection<CliOptionContainer> modeOptions,
Map<CliOption,AbstractCliParser.CliOptionHelpInfo> option2HelpMap,
boolean required)
This method is like
AbstractCliParser.CliHelpWriter.printOptions(Collection, Map, int) but only prints required or additional options. |
void |
AbstractCliParser.CliHelpWriter.printOptions(Collection<CliOptionContainer> modeOptions,
Map<CliOption,AbstractCliParser.CliOptionHelpInfo> option2HelpMap,
int maxOptionColumnWidth)
This method prints the help for the
options given by modeOptions . |
Constructor and Description |
---|
CliOptionHelpInfo(CliOptionContainer option,
CliParserDependencies dependencies,
CliOutputSettings settings)
The constructor.
|
Copyright © 2001–2016 mmm-Team. All rights reserved.