|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface desribing the API used between the CmdLineHandler and its command line parser.
Implementations of this interface are intended to be passed to the constructor of a CmdLineHandler, which will then use the implementation to parse the command line to its composite elements.
Information on using CmdLineParsers can be found in the jcmdline User Guide.
Method Summary | |
UsageFormatter |
getUsageFormatter()
Gets a usage formatter suitable for this CmdLineParser's format. |
void |
parse(java.lang.String[] clargs,
java.util.Map opts,
java.util.List args)
Parses the passed command line arguments into sets of options and arguments. |
void |
setUsageFormatter(UsageFormatter usageFormatter)
Sets a usage formatter suitable for this CmdLineParser's format. |
Method Detail |
public void parse(java.lang.String[] clargs, java.util.Map opts, java.util.List args) throws CmdLineException
clargs
- the command line argumentsopts
- the expected command line optionsargs
- the expected command line arguments (what is left
on the command line after the options have been
processed.
CmdLineException
- if the clargs
fail to parse
properly into the expected options and arguments.public void setUsageFormatter(UsageFormatter usageFormatter)
usageFormatter
- a usage formatter suitable for this
CmdLineParser's formatgetUsageFormatter()
public UsageFormatter getUsageFormatter()
setUsageFormatter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |