Package org.apache.commons.cli
package org.apache.commons.cli
Apache Commons CLI provides a simple API for presenting, processing, and validating a Command Line Interface.
-
ClassDescriptionThrown when more than one option in an option group has been provided.Exception thrown when an option can't be identified from a partial name.Deprecated.Represents list of arguments parsed against a
Options
descriptor.A nested builder class to createCommandLine
instance using descriptive methods.A class that implements theCommandLineParser
interface can parse a String array according to theOptions
specified and return aCommandLine
.The definition of the functional interface to call when doing a conversion.Default parser.A nested builder class to createDefaultParser
instances using descriptive methods.Deprecated attributes.BuildsDeprecatedAttributes
.Deprecated.since 1.3, use theDefaultParser
insteadA formatter of help messages for command line options.BuildsHelpFormatter
.Thrown when an option requiring an argument is not provided with an argument.Thrown when a required option has not been provided.Describes a single command-line option.BuildsOption
instances using descriptive methods.Deprecated.since 1.3, useOption.builder(String)
insteadA group of mutually exclusive options.Main entry-point into the library.Base for Exceptions thrown during parsing of a command-line.Deprecated.since 1.3, the two-pass parsing with the flatten method is not enough flexible to handle complex casesAllows Options to be created from a single String.Deprecated.since 1.3, use theDefaultParser
insteadTypeHandler will handle the pluggable conversion and verification of Option types.Thrown during parsing signaling an unrecognized option.
DefaultParser
instead