public final class Parameters
extends java.lang.Object
Constructor and Description |
---|
Parameters() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter parameter)
Adds a given option to the specification.
|
org.apache.commons.cli.Options |
getOptions()
Returns the list of supported parameters in the Apache Commons CLI format.
|
java.util.List<Parameter> |
getParameters()
Returns the list of supported parameters.
|
void |
help(java.lang.String format)
Prints the help message.
|
Arguments |
parseCommandLine(java.lang.String... args)
Parses the command line.
|
public java.util.List<Parameter> getParameters()
public org.apache.commons.cli.Options getOptions()
public void addParameter(Parameter parameter)
parameter
- the option to be added.public Arguments parseCommandLine(java.lang.String... args) throws org.apache.commons.cli.ParseException
args
- the command line.org.apache.commons.cli.ParseException
- the parse exception.public void help(java.lang.String format)
format
- the tool execution format.