Uses of Class
org.apache.commons.cli.OptionGroup
Packages that use OptionGroup
Package
Description
Apache Commons CLI provides a simple API for presenting, processing, and validating a Command Line Interface.
The help production system.
-
Uses of OptionGroup in org.apache.commons.cli
Methods in org.apache.commons.cli that return OptionGroupModifier and TypeMethodDescriptionAdds the givenOption
to this group.AlreadySelectedException.getOptionGroup()
Gets the option group where another option has been selected.Options.getOptionGroup
(Option option) Gets the OptionGroup theopt
belongs to.Methods in org.apache.commons.cli with parameters of type OptionGroupModifier and TypeMethodDescriptionOptions.addOptionGroup
(OptionGroup optionGroup) Adds the specified option group.CommandLine.getOptionValue
(OptionGroup optionGroup) Gets the first argument, if any, of this option group.CommandLine.getOptionValue
(OptionGroup optionGroup, String defaultValue) Gets the first argument, if any, of an option group.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 thisOptionGroup
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(OptionGroup optionGroup, Supplier<T> defaultValue) Gets a version of thisOptionGroup
converted to a particular type.<T> T
CommandLine.getParsedOptionValue
(OptionGroup optionGroup, T defaultValue) Gets a version of thisOptionGroup
converted to a particular type.<T> T[]
CommandLine.getParsedOptionValues
(OptionGroup optionGroup) Gets a version of thisOptionGroup
converted to an array of a particular type.<T> T[]
CommandLine.getParsedOptionValues
(OptionGroup optionGroup, Supplier<T[]> defaultValue) Gets a version of thisOptionGroup
converted to an array of a particular type.<T> T[]
CommandLine.getParsedOptionValues
(OptionGroup optionGroup, T[] defaultValue) Gets a version of thisOptionGroup
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 OptionGroupModifierConstructorDescriptionAlreadySelectedException
(OptionGroup optionGroup, Option option) Constructs a newAlreadySelectedException
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 OptionGroupModifier and TypeMethodDescriptionAbstractHelpFormatter.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 OptionGroupModifier and TypeMethodDescriptionprotected String
AbstractHelpFormatter.toSyntaxOptions
(Iterable<Option> options, Function<Option, OptionGroup> lookup) Return the string representation of the options as used in the syntax display.