Package org.apache.commons.cli
Commons CLI 1.3
- Version:
- $Id: package-info.java 1443102 2013-02-06 18:12:16Z tn $
-
Interface Summary Interface Description CommandLineParser A class that implements theCommandLineParserinterface can parse a String array according to theOptionsspecified and return aCommandLine. -
Class Summary Class Description BasicParser Deprecated. since 1.3, use theDefaultParserinsteadCommandLine Represents list of arguments parsed against aOptionsdescriptor.CommandLine.Builder A nested builder class to createCommandLineinstance using descriptive methods.DefaultParser Default parser.GnuParser Deprecated. since 1.3, use theDefaultParserinsteadHelpFormatter A formatter of help messages for command line options.HelpFormatter.OptionComparator This class implements theComparatorinterface for comparing Options.Option Describes a single command-line option.Option.Builder A nested builder class to createOptioninstances using descriptive methods.OptionBuilder Deprecated. since 1.3, useOption.builder(String)insteadOptionGroup A group of mutually exclusive options.Options Main entry-point into the library.OptionValidator Validates an Option string.Parser Deprecated. since 1.3, the two-pass parsing with the flatten method is not enough flexible to handle complex casesPatternOptionBuilder Allows Options to be created from a single String.PosixParser Deprecated. since 1.3, use theDefaultParserinsteadTypeHandler This is a temporary implementation.Util Contains useful helper methods for classes within this package. -
Exception Summary Exception Description AlreadySelectedException Thrown when more than one option in an option group has been provided.AmbiguousOptionException Exception thrown when an option can't be identified from a partial name.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.