# 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.

- Related Packages
  Package
  Description
  org.apache.commons.cli.help
  The help production system.
- Class
  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.
  BasicParser
  Deprecated.
  since 1.3, use the `DefaultParser` instead
  CommandLine
  Represents list of arguments parsed against a `Options` descriptor.
  CommandLine.Builder
  A nested builder class to create `CommandLine` instance using descriptive methods.
  CommandLineParser
  A class that implements the `CommandLineParser` interface can parse a String array according to the `Options` specified and return a `CommandLine`.
  Converter<T,E extends Exception>
  The definition of the functional interface to call when doing a conversion.
  DefaultParser
  Default parser.
  DefaultParser.Builder
  A nested builder class to create `DefaultParser` instances using descriptive methods.
  DefaultParser.NonOptionAction
  Enum representing possible actions that may be done when "non option" is discovered during parsing.
  DeprecatedAttributes
  Deprecated attributes.
  DeprecatedAttributes.Builder
  Builds `DeprecatedAttributes`.
  GnuParser
  Deprecated.
  since 1.3, use the `DefaultParser` instead
  HelpFormatter
  Deprecated.
  Use `HelpFormatter`.
  HelpFormatter.Builder
  Builds `HelpFormatter`.
  MissingArgumentException
  Thrown when an option requiring an argument is not provided with an argument.
  MissingOptionException
  Thrown when a required option has not been provided.
  Option
  Describes a single command-line option.
  Option.Builder
  Builds `Option` instances using descriptive methods.
  OptionBuilder
  Deprecated.
  since 1.3, use `Option.builder(String)` instead
  OptionGroup
  A group of mutually exclusive options.
  Options
  Main entry-point into the library.
  ParseException
  Base for Exceptions thrown during parsing of a command-line.
  Parser
  Deprecated.
  since 1.3, the two-pass parsing with the flatten method is not enough flexible to handle complex cases
  PatternOptionBuilder
  Allows Options to be created from a single String.
  PosixParser
  Deprecated.
  since 1.3, use the `DefaultParser` instead
  TypeHandler
  TypeHandler will handle the pluggable conversion and verification of Option types.
  UnrecognizedOptionException
  Thrown during parsing signaling an unrecognized option.