Package Apache.CLI
Apache Commons CLI provides a simple API for presenting, processing and validating a Command
Line Interface.
-
Argument List: Examine Results Java Entity Description CommandLine Represents list of arguments parsed against aOptions
descriptorCommandLine.Builder A nested builder class to createCommandLine
instance using descriptive methodsArgument List: Parse main String[] Java Entity Description CommandLineParser A class that implements theCommandLineParser
interface can parse a String array according to theOptions
specified and return aCommandLine
DefaultParser Default parserDefaultParser.Builder A nested builder class to createDefaultParser
instances using descriptive methodsArgument List: Define Options Java Entity Description Option Describes a single command-line optionOption.Builder A nested builder class to createOption
instances using descriptive methodsOptionGroup A group of mutually exclusive optionsOptions Main entry-point into the libraryPatternOptionBuilder Allows Options to be created from a single StringUtility Classes Java Entity Description HelpFormatter A formatter of help messages for command line optionsTypeHandler This is a temporary implementationExceptions Java Entity Description AlreadySelectedException Thrown when more than one option in an option group has been providedAmbiguousOptionException Exception thrown when an option can't be identified from a partial nameMissingArgumentException Thrown when an option requiring an argument is not provided with an argumentMissingOptionException Thrown when a required option has not been providedParseException Base for Exceptions thrown during parsing of a command-lineUnrecognizedOptionException Thrown during parsing signaling an unrecognized option