# Uses of Class
org.apache.commons.cli.OptionGroup

Packages that use OptionGroup
Package
Description
org.apache.commons.cli
Apache Commons CLI provides a simple API for presenting, processing, and validating a Command Line Interface.
org.apache.commons.cli.help
The help production system.

- ## Uses of OptionGroup in org.apache.commons.cli

  Methods in org.apache.commons.cli that return OptionGroup
  Modifier and Type
  Method
  Description
  `OptionGroup`
  OptionGroup.`addOption(Option option)`
  Adds the given `Option` to this group.
  `OptionGroup`
  AlreadySelectedException.`getOptionGroup()`
  Gets the option group where another option has been selected.
  `OptionGroup`
  Options.`getOptionGroup(Option option)`
  Gets the OptionGroup the `opt` belongs to.
  Methods in org.apache.commons.cli with parameters of type OptionGroup
  Modifier and Type
  Method
  Description
  `Options`
  Options.`addOptionGroup(OptionGroup optionGroup)`
  Adds the specified option group.
  `String`
  CommandLine.`getOptionValue(OptionGroup optionGroup)`
  Gets the first argument, if any, of this option group.
  `String`
  CommandLine.`getOptionValue(OptionGroup optionGroup, String defaultValue)`
  Gets the first argument, if any, of an option group.
  `String`
  CommandLine.`getOptionValue(OptionGroup optionGroup, Supplier<String> defaultValue)`
  Gets the first argument, if any, of an option group.
  `String[]`
  CommandLine.`getOptionValues(OptionGroup optionGroup)`
  Gets the array of values, if any, of an option group.
  `<T> T`
  CommandLine.`getParsedOptionValue(OptionGroup optionGroup)`
  Gets a version of this `OptionGroup` converted to a particular type.
  `<T> T`
  CommandLine.`getParsedOptionValue(OptionGroup optionGroup, Supplier<T> defaultValue)`
  Gets a version of this `OptionGroup` converted to a particular type.
  `<T> T`
  CommandLine.`getParsedOptionValue(OptionGroup optionGroup, T defaultValue)`
  Gets a version of this `OptionGroup` converted to a particular type.
  `<T> T[]`
  CommandLine.`getParsedOptionValues(OptionGroup optionGroup)`
  Gets a version of this `OptionGroup` converted to an array of a particular type.
  `<T> T[]`
  CommandLine.`getParsedOptionValues(OptionGroup optionGroup, Supplier<T[]> defaultValue)`
  Gets a version of this `OptionGroup` converted to an array of a particular type.
  `<T> T[]`
  CommandLine.`getParsedOptionValues(OptionGroup optionGroup, T[] defaultValue)`
  Gets a version of this `OptionGroup` converted to an array of a particular type.
  `boolean`
  CommandLine.`hasOption(OptionGroup optionGroup)`
  Tests to see if an option has been set.
  Constructors in org.apache.commons.cli with parameters of type OptionGroup
  Modifier
  Constructor
  Description
  ``
  `AlreadySelectedException(OptionGroup optionGroup, Option option)`
  Constructs a new `AlreadySelectedException` for the specified option group.

- ## Uses of OptionGroup in org.apache.commons.cli.help

  Methods in org.apache.commons.cli.help with parameters of type OptionGroup
  Modifier and Type
  Method
  Description
  `String`
  AbstractHelpFormatter.`toSyntaxOptions(OptionGroup group)`
  Return the string representation of the options as used in the syntax display.
  Method parameters in org.apache.commons.cli.help with type arguments of type OptionGroup
  Modifier and Type
  Method
  Description
  `protected String`
  AbstractHelpFormatter.`toSyntaxOptions(Iterable<Option> options, Function<Option,OptionGroup> lookup)`
  Return the string representation of the options as used in the syntax display.