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
.Default parser.A nested builder class to createDefaultParser
instances using descriptive methods.Deprecated.since 1.3, use theDefaultParser
insteadA formatter of help messages for command line options.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.A nested builder class to createOption
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
insteadThis is a temporary implementation.Thrown during parsing signaling an unrecognized option.
DefaultParser
instead