- checkRequiredOptions() - Method in class org.apache.commons.cli.Parser
-
Deprecated.
- CLASS_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder
-
Class class
- clone() - Method in class org.apache.commons.cli.Option
-
A rather odd clone method - due to incorrect code in 1.0 it is public
and in 1.1 rather than throwing a CloneNotSupportedException it throws
a RuntimeException so as to maintain backwards compat at the API level.
- cmd - Variable in class org.apache.commons.cli.DefaultParser
-
The command-line instance.
- cmd - Variable in class org.apache.commons.cli.Parser
-
Deprecated.
commandline instance
- CommandLine - Class in org.apache.commons.cli
-
Represents list of arguments parsed against a
Options
descriptor.
- CommandLine() - Constructor for class org.apache.commons.cli.CommandLine
-
Creates a command line.
- CommandLineParser - Interface in org.apache.commons.cli
-
A class that implements the
CommandLineParser
interface
can parse a String array according to the
Options
specified
and return a
CommandLine
.
- create(char) - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
Create an Option using the current settings and with
the specified Option char
.
- create() - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
Create an Option using the current settings
- create(String) - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
Create an Option using the current settings and with
the specified Option char
.
- createClass(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the class whose name is classname
.
- createDate(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the date represented by str
.
- createFile(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the File represented by str
.
- createFiles(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the File[] represented by str
.
- createNumber(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Create a number from a String.
- createObject(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Create an Object from the classname and empty constructor.
- createPadding(int) - Method in class org.apache.commons.cli.HelpFormatter
-
Return a String of padding of length len
.
- createURL(String) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the URL represented by str
.
- createValue(String, Object) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the Object
of type obj
with the value of str
.
- createValue(String, Class<?>) - Static method in class org.apache.commons.cli.TypeHandler
-
Returns the Object
of type clazz
with the value of str
.
- currentOption - Variable in class org.apache.commons.cli.DefaultParser
-
The last option parsed.
- currentToken - Variable in class org.apache.commons.cli.DefaultParser
-
The token currently processed.
- getArgList() - Method in class org.apache.commons.cli.CommandLine
-
Retrieve any left-over non-recognized options and arguments
- getArgName() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'argName'.
- getArgName() - Method in class org.apache.commons.cli.Option
-
Gets the display name for the argument value.
- getArgs() - Method in class org.apache.commons.cli.CommandLine
-
Retrieve any left-over non-recognized options and arguments
- getArgs() - Method in class org.apache.commons.cli.Option
-
Returns the number of argument values this Option can take.
- getDescPadding() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'descPadding'.
- getDescription() - Method in class org.apache.commons.cli.Option
-
Retrieve the self-documenting description of this Option
- getId() - Method in class org.apache.commons.cli.Option
-
Returns the id of this Option.
- getLeftPadding() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'leftPadding'.
- getLongOpt() - Method in class org.apache.commons.cli.Option
-
Retrieve the long name of this Option.
- getLongOptPrefix() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'longOptPrefix'.
- getLongOptSeparator() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the separator displayed between a long option and its value.
- getMatchingOptions() - Method in exception org.apache.commons.cli.AmbiguousOptionException
-
Returns the options matching the partial name.
- getMatchingOptions(String) - Method in class org.apache.commons.cli.Options
-
Returns the options with a long name starting with the name specified.
- getMissingOptions() - Method in exception org.apache.commons.cli.MissingOptionException
-
Returns the list of options or option groups missing in the command line parsed.
- getNames() - Method in class org.apache.commons.cli.OptionGroup
-
- getNewLine() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'newLine'.
- getOpt() - Method in class org.apache.commons.cli.Option
-
Retrieve the name of this Option.
- getOption() - Method in exception org.apache.commons.cli.AlreadySelectedException
-
Returns the option that was added to the group and triggered the exception.
- getOption() - Method in exception org.apache.commons.cli.MissingArgumentException
-
Return the option requiring an argument that wasn't provided
on the command line.
- getOption(String) - Method in class org.apache.commons.cli.Options
-
Retrieve the
Option
matching the long or short name specified.
- getOption() - Method in exception org.apache.commons.cli.UnrecognizedOptionException
-
Returns the unrecognized option.
- getOptionComparator() - Method in class org.apache.commons.cli.HelpFormatter
-
Comparator used to sort the options when they output in help text.
- getOptionGroup() - Method in exception org.apache.commons.cli.AlreadySelectedException
-
Returns the option group where another option has been selected.
- getOptionGroup(Option) - Method in class org.apache.commons.cli.Options
-
Returns the OptionGroup the opt
belongs to.
- getOptionObject(String) - Method in class org.apache.commons.cli.CommandLine
-
- getOptionObject(char) - Method in class org.apache.commons.cli.CommandLine
-
Return the Object
type of this Option
.
- getOptionProperties(String) - Method in class org.apache.commons.cli.CommandLine
-
Retrieve the map of values associated to the option.
- getOptions() - Method in class org.apache.commons.cli.CommandLine
-
Returns an array of the processed
Option
s.
- getOptions() - Method in class org.apache.commons.cli.OptionGroup
-
- getOptions() - Method in class org.apache.commons.cli.Options
-
Retrieve a read-only list of options in this set
- getOptions() - Method in class org.apache.commons.cli.Parser
-
Deprecated.
- getOptionValue(String) - Method in class org.apache.commons.cli.CommandLine
-
Retrieve the first argument, if any, of this option.
- getOptionValue(char) - Method in class org.apache.commons.cli.CommandLine
-
Retrieve the first argument, if any, of this option.
- getOptionValue(String, String) - Method in class org.apache.commons.cli.CommandLine
-
Retrieve the first argument, if any, of an option.
- getOptionValue(char, String) - Method in class org.apache.commons.cli.CommandLine
-
Retrieve the argument, if any, of an option.
- getOptionValues(String) - Method in class org.apache.commons.cli.CommandLine
-
Retrieves the array of values, if any, of an option.
- getOptionValues(char) - Method in class org.apache.commons.cli.CommandLine
-
Retrieves the array of values, if any, of an option.
- getOptPrefix() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'optPrefix'.
- getParsedOptionValue(String) - Method in class org.apache.commons.cli.CommandLine
-
Return a version of this Option
converted to a particular type.
- getRequiredOptions() - Method in class org.apache.commons.cli.Options
-
Returns the required options.
- getRequiredOptions() - Method in class org.apache.commons.cli.Parser
-
Deprecated.
- getSelected() - Method in class org.apache.commons.cli.OptionGroup
-
- getSyntaxPrefix() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'syntaxPrefix'.
- getType() - Method in class org.apache.commons.cli.Option
-
Retrieve the type of this Option.
- getValue() - Method in class org.apache.commons.cli.Option
-
Returns the specified value of this Option or
null
if there is no value.
- getValue(int) - Method in class org.apache.commons.cli.Option
-
Returns the specified value of this Option or
null
if there is no value.
- getValue(String) - Method in class org.apache.commons.cli.Option
-
Returns the value/first value of this Option or the
defaultValue
if there is no value.
- getValueClass(char) - Static method in class org.apache.commons.cli.PatternOptionBuilder
-
Retrieve the class that ch
represents.
- getValues() - Method in class org.apache.commons.cli.Option
-
Return the values of this Option as a String array
or null if there are no values
- getValueSeparator() - Method in class org.apache.commons.cli.Option
-
Returns the value separator character.
- getValuesList() - Method in class org.apache.commons.cli.Option
-
- getWidth() - Method in class org.apache.commons.cli.HelpFormatter
-
Returns the 'width'.
- GnuParser - Class in org.apache.commons.cli
-
- GnuParser() - Constructor for class org.apache.commons.cli.GnuParser
-
Deprecated.
- handleConcatenatedOptions(String) - Method in class org.apache.commons.cli.DefaultParser
-
Breaks token
into its constituent parts
using the following algorithm.
- hasArg() - Method in class org.apache.commons.cli.Option.Builder
-
Indicates that the Option will require an argument.
- hasArg(boolean) - Method in class org.apache.commons.cli.Option.Builder
-
Indicates if the Option has an argument or not.
- hasArg() - Method in class org.apache.commons.cli.Option
-
Query to see if this Option requires an argument
- hasArg() - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option created will require an argument value.
- hasArg(boolean) - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option created will require an argument value if
hasArg
is true.
- hasArgName() - Method in class org.apache.commons.cli.Option
-
Returns whether the display name for the argument value has been set.
- hasArgs() - Method in class org.apache.commons.cli.Option.Builder
-
Indicates that the Option can have unlimited argument values.
- hasArgs() - Method in class org.apache.commons.cli.Option
-
Query to see if this Option can take many values.
- hasArgs() - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option created can have unlimited argument values.
- hasArgs(int) - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option created can have num
argument values.
- hashCode() - Method in class org.apache.commons.cli.Option
-
- hasLongOpt() - Method in class org.apache.commons.cli.Option
-
Query to see if this Option has a long name
- hasLongOption(String) - Method in class org.apache.commons.cli.Options
-
- hasOption(String) - Method in class org.apache.commons.cli.CommandLine
-
Query to see if an option has been set.
- hasOption(char) - Method in class org.apache.commons.cli.CommandLine
-
Query to see if an option has been set.
- hasOption(String) - Method in class org.apache.commons.cli.Options
-
- hasOptionalArg() - Method in class org.apache.commons.cli.Option
-
- hasOptionalArg() - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option can have an optional argument.
- hasOptionalArgs() - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option can have an unlimited number of optional arguments.
- hasOptionalArgs(int) - Static method in class org.apache.commons.cli.OptionBuilder
-
Deprecated.
The next Option can have the specified number of optional arguments.
- hasShortOption(String) - Method in class org.apache.commons.cli.Options
-
- hasValueSeparator() - Method in class org.apache.commons.cli.Option
-
Return whether this Option has specified a value separator.
- HelpFormatter - Class in org.apache.commons.cli
-
A formatter of help messages for command line options.
- HelpFormatter() - Constructor for class org.apache.commons.cli.HelpFormatter
-
- parse(Options, String[]) - Method in interface org.apache.commons.cli.CommandLineParser
-
Parse the arguments according to the specified options.
- parse(Options, String[], boolean) - Method in interface org.apache.commons.cli.CommandLineParser
-
Parse the arguments according to the specified options.
- parse(Options, String[]) - Method in class org.apache.commons.cli.DefaultParser
-
- parse(Options, String[], Properties) - Method in class org.apache.commons.cli.DefaultParser
-
Parse the arguments according to the specified options and properties.
- parse(Options, String[], boolean) - Method in class org.apache.commons.cli.DefaultParser
-
- parse(Options, String[], Properties, boolean) - Method in class org.apache.commons.cli.DefaultParser
-
Parse the arguments according to the specified options and properties.
- parse(Options, String[]) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Parses the specified
arguments
based
on the specified
Options
.
- parse(Options, String[], Properties) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Parse the arguments according to the specified options and properties.
- parse(Options, String[], boolean) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Parses the specified
arguments
based on the specified
Options
.
- parse(Options, String[], Properties, boolean) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Parse the arguments according to the specified options and
properties.
- ParseException - Exception in org.apache.commons.cli
-
Base for Exceptions thrown during parsing of a command-line.
- ParseException(String) - Constructor for exception org.apache.commons.cli.ParseException
-
Construct a new ParseException
with the specified detail message.
- parsePattern(String) - Static method in class org.apache.commons.cli.PatternOptionBuilder
-
Returns the
Options
instance represented by
pattern
.
- Parser - Class in org.apache.commons.cli
-
- Parser() - Constructor for class org.apache.commons.cli.Parser
-
Deprecated.
- PatternOptionBuilder - Class in org.apache.commons.cli
-
Allows Options to be created from a single String.
- PatternOptionBuilder() - Constructor for class org.apache.commons.cli.PatternOptionBuilder
-
- PosixParser - Class in org.apache.commons.cli
-
- PosixParser() - Constructor for class org.apache.commons.cli.PosixParser
-
Deprecated.
- printHelp(String, Options) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(String, Options, boolean) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(String, String, Options, String) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(String, String, Options, String, boolean) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(int, String, String, Options, String) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(int, String, String, Options, String, boolean) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(PrintWriter, int, String, String, Options, int, int, String) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printHelp(PrintWriter, int, String, String, Options, int, int, String, boolean) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for options
with the specified
command line syntax.
- printOptions(PrintWriter, int, Options, int, int) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the help for the specified Options to the specified writer,
using the specified width, left padding and description padding.
- printUsage(PrintWriter, int, String, Options) - Method in class org.apache.commons.cli.HelpFormatter
-
Prints the usage statement for the specified application.
- printUsage(PrintWriter, int, String) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the cmdLineSyntax to the specified writer, using the
specified width.
- printWrapped(PrintWriter, int, String) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the specified text to the specified PrintWriter.
- printWrapped(PrintWriter, int, int, String) - Method in class org.apache.commons.cli.HelpFormatter
-
Print the specified text to the specified PrintWriter.
- processArgs(Option, ListIterator<String>) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Process the argument values for the specified Option
opt
using the values retrieved from the
specified iterator iter
.
- processOption(String, ListIterator<String>) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Process the Option specified by arg
using the values
retrieved from the specified iterator iter
.
- processProperties(Properties) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
Sets the values of Options using the values in properties
.
- setArgName(String) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'argName'.
- setArgName(String) - Method in class org.apache.commons.cli.Option
-
Sets the display name for the argument value.
- setArgs(int) - Method in class org.apache.commons.cli.Option
-
Sets the number of argument values this Option can take.
- setDescPadding(int) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'descPadding'.
- setDescription(String) - Method in class org.apache.commons.cli.Option
-
Sets the self-documenting description of this Option
- setLeftPadding(int) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'leftPadding'.
- setLongOpt(String) - Method in class org.apache.commons.cli.Option
-
Sets the long name of this Option.
- setLongOptPrefix(String) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'longOptPrefix'.
- setLongOptSeparator(String) - Method in class org.apache.commons.cli.HelpFormatter
-
Set the separator displayed between a long option and its value.
- setNewLine(String) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'newLine'.
- setOptionalArg(boolean) - Method in class org.apache.commons.cli.Option
-
Sets whether this Option can have an optional argument.
- setOptionComparator(Comparator<Option>) - Method in class org.apache.commons.cli.HelpFormatter
-
Set the comparator used to sort the options when they output in help text.
- setOptions(Options) - Method in class org.apache.commons.cli.Parser
-
Deprecated.
- setOptPrefix(String) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'optPrefix'.
- setRequired(boolean) - Method in class org.apache.commons.cli.Option
-
Sets whether this Option is mandatory.
- setRequired(boolean) - Method in class org.apache.commons.cli.OptionGroup
-
- setSelected(Option) - Method in class org.apache.commons.cli.OptionGroup
-
Set the selected option of this group to name
.
- setSyntaxPrefix(String) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'syntaxPrefix'.
- setType(Object) - Method in class org.apache.commons.cli.Option
-
- setType(Class<?>) - Method in class org.apache.commons.cli.Option
-
Sets the type of this Option.
- setValueSeparator(char) - Method in class org.apache.commons.cli.Option
-
Sets the value separator.
- setWidth(int) - Method in class org.apache.commons.cli.HelpFormatter
-
Sets the 'width'.
- skipParsing - Variable in class org.apache.commons.cli.DefaultParser
-
Flag indicating if tokens should no longer be analyzed and simply added as arguments of the command line.
- stopAtNonOption - Variable in class org.apache.commons.cli.DefaultParser
-
Flag indicating how unrecognized tokens are handled.
- STRING_VALUE - Static variable in class org.apache.commons.cli.PatternOptionBuilder
-
String class