|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Options in org.apache.commons.cli |
Fields in org.apache.commons.cli declared as Options | |
private Options |
Parser.options
current Options |
private Options |
PosixParser.options
the command line Options |
Methods in org.apache.commons.cli that return Options | |
static Options |
PatternOptionBuilder.parsePattern(String pattern)
Returns the Options instance represented by
pattern . |
Options |
Options.addOptionGroup(OptionGroup group)
Add the specified option group. |
Options |
Options.addOption(String opt,
boolean hasArg,
String description)
Add an option that only contains a short-name |
Options |
Options.addOption(String opt,
String longOpt,
boolean hasArg,
String description)
Add an option that contains a short-name and a long-name |
Options |
Options.addOption(Option opt)
Adds an option instance |
Methods in org.apache.commons.cli with parameters of type Options | |
protected String[] |
BasicParser.flatten(Options options,
String[] arguments,
boolean stopAtNonOption)
A simple implementation of Parser 's abstract
flatten method. |
protected String[] |
GnuParser.flatten(Options options,
String[] arguments,
boolean stopAtNonOption)
This flatten method does so using the following rules: If an Option exists for the first character of
the arguments entry AND an Option
does not exist for the whole argument then
add the first character as an option to the processed tokens
list e.g. |
CommandLine |
CommandLineParser.parse(Options options,
String[] arguments)
Parse the arguments according to the specified options. |
CommandLine |
CommandLineParser.parse(Options options,
String[] arguments,
boolean stopAtNonOption)
Parse the arguments according to the specified options. |
protected abstract String[] |
Parser.flatten(Options opts,
String[] arguments,
boolean stopAtNonOption)
Subclasses must implement this method to reduce the arguments that have been passed to the parse
method. |
CommandLine |
Parser.parse(Options options,
String[] arguments)
Parses the specified arguments
based on the specifed Options . |
CommandLine |
Parser.parse(Options opts,
String[] arguments,
boolean stopAtNonOption)
Parses the specified arguments
based on the specifed Options . |
protected String[] |
PosixParser.flatten(Options options,
String[] arguments,
boolean stopAtNonOption)
An implementation of Parser 's abstract
flatten method. |
void |
HelpFormatter.printHelp(String cmdLineSyntax,
Options options)
|
void |
HelpFormatter.printHelp(String cmdLineSyntax,
Options options,
boolean autoUsage)
|
void |
HelpFormatter.printHelp(String cmdLineSyntax,
String header,
Options options,
String footer)
|
void |
HelpFormatter.printHelp(String cmdLineSyntax,
String header,
Options options,
String footer,
boolean autoUsage)
|
void |
HelpFormatter.printHelp(int width,
String cmdLineSyntax,
String header,
Options options,
String footer)
|
void |
HelpFormatter.printHelp(int width,
String cmdLineSyntax,
String header,
Options options,
String footer,
boolean autoUsage)
|
void |
HelpFormatter.printHelp(PrintWriter pw,
int width,
String cmdLineSyntax,
String header,
Options options,
int leftPad,
int descPad,
String footer)
|
void |
HelpFormatter.printHelp(PrintWriter pw,
int width,
String cmdLineSyntax,
String header,
Options options,
int leftPad,
int descPad,
String footer,
boolean autoUsage)
|
void |
HelpFormatter.printUsage(PrintWriter pw,
int width,
String app,
Options options)
Prints the usage statement for the specified application. |
void |
HelpFormatter.printOptions(PrintWriter pw,
int width,
Options options,
int leftPad,
int descPad)
|
protected StringBuffer |
HelpFormatter.renderOptions(StringBuffer sb,
int width,
Options options,
int leftPad,
int descPad)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |