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
Optionsdescriptor.A nested builder class to createCommandLineinstance using descriptive methods.A class that implements theCommandLineParserinterface can parse a String array according to theOptionsspecified and return aCommandLine.The definition of the functional interface to call when doing a conversion.Default parser.A nested builder class to createDefaultParserinstances using descriptive methods.Enum representing possible actions that may be done when "non option" is discovered during parsing.Deprecated attributes.BuildsDeprecatedAttributes.Deprecated.since 1.3, use theDefaultParserinsteadDeprecated.UseHelpFormatter.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.BuildsOptioninstances 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 theDefaultParserinsteadTypeHandler will handle the pluggable conversion and verification of Option types.Thrown during parsing signaling an unrecognized option.
DefaultParserinstead