| Package | Description |
|---|---|
| net.dpml.cli |
Commandline modeling and parsing utilities.
|
| net.dpml.cli.commandline |
Commandline implementation.
|
| net.dpml.cli.option |
Options implementation include command, group, switch and property abstractions.
|
| net.dpml.cli.util |
Commandline utilities including help formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Option.process(WriteableCommandLine commandLine,
java.util.ListIterator args)
Processes String arguments into a CommandLine.
|
void |
Parent.processParent(WriteableCommandLine commandLine,
java.util.ListIterator args)
Processes the parent part of the Option.
|
void |
Argument.processValues(WriteableCommandLine commandLine,
java.util.ListIterator args,
Option option)
Processes the "README" style element of the argument.
|
void |
Option.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
Argument.validate(WriteableCommandLine commandLine,
Option option)
Performs any necessary validation on the values added to the
CommandLine.
|
| Modifier and Type | Method and Description |
|---|---|
CommandLine |
Parser.parse(java.lang.String[] arguments)
Parse the arguments according to the specified options and properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ArgumentImpl.process(WriteableCommandLine commandLine,
java.util.ListIterator args)
Processes String arguments into a CommandLine.
|
void |
ParentImpl.process(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes String arguments into a CommandLine.
|
void |
PropertyOption.process(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes String arguments into a CommandLine.
|
void |
GroupImpl.process(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes String arguments into a CommandLine.
|
void |
Switch.processParent(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Processes the parent part of the Option.
|
void |
DefaultOption.processParent(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Process the parent.
|
void |
Command.processParent(WriteableCommandLine commandLine,
java.util.ListIterator arguments)
Process the parent.
|
void |
ArgumentImpl.processValues(WriteableCommandLine commandLine,
java.util.ListIterator arguments,
Option option)
Processes the "README" style element of the argument.
|
void |
Switch.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
ArgumentImpl.validate(WriteableCommandLine commandLine)
Performs any necessary validation on the values added to the
CommandLine.
|
void |
ParentImpl.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
DefaultOption.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
PropertyOption.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
Command.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
GroupImpl.validate(WriteableCommandLine commandLine)
Checks that the supplied CommandLine is valid with respect to this
option.
|
void |
SourceDestArgument.validate(WriteableCommandLine commandLine,
Option option)
Checks that the supplied CommandLine is valid with respect to the
suppled option.
|
void |
ArgumentImpl.validate(WriteableCommandLine commandLine,
Option option)
Performs any necessary validation on the values added to the
CommandLine.
|
| Modifier and Type | Method and Description |
|---|---|
OptionException |
HelpFormatter.getException()
Return the option exception
|
| Modifier and Type | Method and Description |
|---|---|
void |
HelpFormatter.setException(OptionException exception)
Sets the exception to document
|