Package org.apache.commons.cli
Commons CLI 1.2
-
Interface Summary Interface Description CommandLineParser A class that implements theCommandLineParser
interface can parse a String array according to theOptions
specified and return aCommandLine
. -
Class Summary Class Description BasicParser The class BasicParser provides a very simple implementation of theflatten
method.CommandLine Represents list of arguments parsed against aOptions
descriptor.GnuParser The class GnuParser provides an implementation of theflatten
method.HelpFormatter A formatter of help messages for the current command line optionsOption Describes a single command-line option.OptionBuilder OptionBuilder allows the user to create Options using descriptive methods.OptionGroup A group of mutually exclusive options.Options Main entry-point into the library.Parser Parser
createsCommandLine
s.PatternOptionBuilder Allows Options to be created from a single String.PosixParser The class PosixParser provides an implementation of theflatten
method.TypeHandler This is a temporary implementation. -
Exception Summary Exception Description AlreadySelectedException Thrown when more than one option in an option group has been provided.MissingArgumentException Thrown when an option requiring an argument is not provided with an argument.MissingOptionException Thrown when a required option has not been provided.ParseException Base for Exceptions thrown during parsing of a command-line.UnrecognizedOptionException Exception thrown during parsing signalling an unrecognized option was seen.