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.Represents list of arguments parsed against a
Optionsdescriptor.A nested builder class to create
CommandLineinstance using descriptive methods.Default parser.A nested builder class to create
DefaultParserinstances using descriptive methods.A 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 create
Optioninstances using descriptive methods.Deprecated.since 1.3, use
Option.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.This is a temporary implementation.Thrown during parsing signaling an unrecognized option.