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

- ## 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 opt)`
  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 group)`
  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.
  `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 group, Option option)`
  Constructs a new `AlreadySelectedException` for the specified option group.