Uses of Class
org.apache.commons.cli.OptionGroup
-
Uses of OptionGroup in org.apache.commons.cli
Fields in org.apache.commons.cli declared as OptionGroupModifier and TypeFieldDescriptionprivate final OptionGroupAlreadySelectedException.groupThe option group selected.Fields in org.apache.commons.cli with type parameters of type OptionGroupModifier and TypeFieldDescriptionprivate final Map<String, OptionGroup> Options.optionGroupsA map of the option groupsMethods in org.apache.commons.cli that return OptionGroupModifier and TypeMethodDescriptionAdds the givenOptionto this group.AlreadySelectedException.getOptionGroup()Gets the option group where another option has been selected.Options.getOptionGroup(Option opt) Gets the OptionGroup theoptbelongs to.Methods in org.apache.commons.cli that return types with arguments of type OptionGroupModifier and TypeMethodDescription(package private) Collection<OptionGroup> Options.getOptionGroups()Gets the OptionGroups that are members of this Options instance.Methods in org.apache.commons.cli with parameters of type OptionGroupModifier and TypeMethodDescriptionOptions.addOptionGroup(OptionGroup group) Adds the specified option group.private voidHelpFormatter.appendOptionGroup(StringBuilder buff, OptionGroup group) Appends the usage clause for an OptionGroup to a StringBuffer.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> TCommandLine.getParsedOptionValue(OptionGroup optionGroup) Gets a version of thisOptionGroupconverted to a particular type.<T> TCommandLine.getParsedOptionValue(OptionGroup optionGroup, Supplier<T> defaultValue) Gets a version of thisOptionGroupconverted to a particular type.<T> TCommandLine.getParsedOptionValue(OptionGroup optionGroup, T defaultValue) Gets a version of thisOptionGroupconverted to a particular type.booleanCommandLine.hasOption(OptionGroup optionGroup) Tests to see if an option has been set.Constructors in org.apache.commons.cli with parameters of type OptionGroupModifierConstructorDescriptionprivateAlreadySelectedException(String message, OptionGroup group, Option option) AlreadySelectedException(OptionGroup group, Option option) Constructs a newAlreadySelectedExceptionfor the specified option group.