Uses of Class
org.apache.commons.cli.ParseException
-
Uses of ParseException in org.apache.commons.cli
Modifier 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.Modifier and TypeMethodDescriptionstatic ParseException
Converts any exception exceptUnsupportedOperationException
to aParseException
.Modifier and TypeMethodDescriptionstatic Class<?>
TypeHandler.createClass
(String className) Returns the class whose name isclassName
.static Number
TypeHandler.createNumber
(String string) Deprecated.static Object
TypeHandler.createObject
(String className) Deprecated.static URL
Creates the URL represented bystring
.static <T> T
TypeHandler.createValue
(String string, Class<T> clazz) Creates the @code Object} of typeclazz
with the value ofstring
.static Object
TypeHandler.createValue
(String string, Object obj) Deprecated.protected abstract String[]
Deprecated.Subclasses must implement this method to reduce thearguments
that have been passed to the parse method.protected String[]
<T> T
CommandLine.getParsedOptionValue
(char opt) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(char opt, Supplier<T> defaultValue) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(char opt, T defaultValue) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(String opt) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(String opt, Supplier<T> defaultValue) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(String opt, T defaultValue) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(Option option) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(OptionGroup optionGroup) Gets a version of thisOptionGroup
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(OptionGroup optionGroup, Supplier<T> defaultValue) Gets a version of thisOptionGroup
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(OptionGroup optionGroup, T defaultValue) Gets a version of thisOptionGroup
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(Option option, Supplier<T> defaultValue) Gets a version of thisOption
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(Option option, T defaultValue) Gets a version of thisOption
converted to a particular type.protected void
DefaultParser.handleConcatenatedOptions
(String token) Breakstoken
into its constituent parts using the following algorithm.static FileInputStream
Deprecated.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
.
TypeHandler.createValue(String, Class)