Uses of Class
org.apache.commons.cli.ParseException
-
Uses of ParseException in org.apache.commons.cli
Subclasses of ParseException in org.apache.commons.cliModifier and TypeClassDescriptionclass
Thrown when more than one option in an option group has been provided.class
Exception thrown when an option can't be identified from a partial name.class
Thrown when an option requiring an argument is not provided with an argument.class
Thrown when a required option has not been provided.class
Thrown during parsing signaling an unrecognized option.Methods in org.apache.commons.cli that throw ParseExceptionModifier and TypeMethodDescriptionprivate void
DefaultParser.checkRequiredArgs()
Throws aMissingArgumentException
if the current option didn't receive the number of arguments expected.static Class<?>
TypeHandler.createClass
(String classname) Returns the class whose name isclassname
.static Number
TypeHandler.createNumber
(String str) Create a number from a String.static Object
TypeHandler.createObject
(String classname) Create an Object from the classname and empty constructor.static URL
Returns the URL represented bystr
.static <T> T
TypeHandler.createValue
(String str, Class<T> clazz) Returns theObject
of typeclazz
with the value ofstr
.static Object
TypeHandler.createValue
(String str, Object obj) Returns theObject
of typeobj
with the value ofstr
.protected abstract String[]
Deprecated.Subclasses must implement this method to reduce thearguments
that have been passed to the parse method.protected String[]
CommandLine.getParsedOptionValue
(char opt) Return a version of thisOption
converted to a particular type.CommandLine.getParsedOptionValue
(String opt) Return a version of thisOption
converted to a particular type.CommandLine.getParsedOptionValue
(Option option) Return a version of thisOption
converted to a particular type.protected void
DefaultParser.handleConcatenatedOptions
(String token) Breakstoken
into its constituent parts using the following algorithm.private void
DefaultParser.handleLongOption
(String token) Handles the following tokens: --L --L=V --L V --lprivate void
DefaultParser.handleLongOptionWithEqual
(String token) Handles the following tokens: --L=V -L=V --l=V -l=Vprivate void
DefaultParser.handleLongOptionWithoutEqual
(String token) Handles the following tokens: --L -L --l -lprivate void
DefaultParser.handleOption
(Option option) private void
DefaultParser.handleProperties
(Properties properties) Sets the values of Options using the values inproperties
.private void
DefaultParser.handleShortAndLongOption
(String token) Handles the following tokens: -S -SV -S V -S=V -S1S2 -S1S2 V -SV1=V2 -L -LV -L V -L=V -lprivate void
DefaultParser.handleToken
(String token) Handles any command line token.private void
DefaultParser.handleUnknownToken
(String token) Handles an unknown token.static FileInputStream
Returns the opened FileInputStream represented bystr
.Parses the arguments according to the specified options.Parses the arguments according to the specified options.DefaultParser.parse
(Options options, String[] arguments, Properties properties) Parses the arguments according to the specified options and properties.DefaultParser.parse
(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) Parses the arguments according to the specified options and properties.Deprecated.Parses the specifiedarguments
based on the specifiedOptions
.Deprecated.Parses the specifiedarguments
based on the specifiedOptions
.Parser.parse
(Options options, String[] arguments, Properties properties) Deprecated.Parse the arguments according to the specified options and properties.Parser.parse
(Options options, String[] arguments, Properties properties, boolean stopAtNonOption) Deprecated.Parse the arguments according to the specified options and properties.void
Parser.processArgs
(Option opt, ListIterator<String> iter) Deprecated.Process the argument values for the specified Optionopt
using the values retrieved from the specified iteratoriter
.protected void
Parser.processOption
(String arg, ListIterator<String> iter) Deprecated.Process the Option specified byarg
using the values retrieved from the specified iteratoriter
.protected void
Parser.processProperties
(Properties properties) Deprecated.Sets the values of Options using the values inproperties
.private void
Parser.updateRequiredOptions
(Option opt) Deprecated.Removes the option or its group from the list of expected elements.