Uses of Class
org.apache.commons.cli.Option
-
-
Uses of Option in org.apache.commons.cli
Fields in org.apache.commons.cli declared as Option Modifier and Type Field Description protected OptionDefaultParser. currentOptionThe last option parsed.private OptionPosixParser. currentOptionDeprecated.holder for the current optionprivate OptionAlreadySelectedException. optionThe option that triggered the exception.private OptionMissingArgumentException. optionThe option requiring additional argumentsFields in org.apache.commons.cli with type parameters of type Option Modifier and Type Field Description private java.util.Map<java.lang.String,Option>Options. longOptsa map of the options with the long keyprotected java.util.Comparator<Option>HelpFormatter. optionComparatorComparator used to sort the options when they output in help text Defaults to case-insensitive alphabetical sorting by option keyprivate java.util.Map<java.lang.String,Option>OptionGroup. optionMaphold the optionsprivate java.util.List<Option>CommandLine. optionsthe processed optionsprivate java.util.Map<java.lang.String,Option>Options. shortOptsa map of the options with the character keyMethods in org.apache.commons.cli that return Option Modifier and Type Method Description OptionOption.Builder. build()Constructs an Option with the values declared by thisOption.Builder.static OptionOptionBuilder. create()Deprecated.Create an Option using the current settingsstatic OptionOptionBuilder. create(char opt)Deprecated.Create an Option using the current settings and with the specified Optionchar.static OptionOptionBuilder. create(java.lang.String opt)Deprecated.Create an Option using the current settings and with the specified Optionchar.(package private) OptionOptions. getLongOption(java.lang.String opt)Retrieve theOptionmatching the long name specified.OptionAlreadySelectedException. getOption()Returns the option that was added to the group and triggered the exception.OptionMissingArgumentException. getOption()Return the option requiring an argument that wasn't provided on the command line.OptionOptions. getOption(java.lang.String opt)Retrieve theOptionmatching the long or short name specified.Option[]CommandLine. getOptions()Returns an array of the processedOptions.private OptionCommandLine. resolveOption(java.lang.String opt)Retrieves the option object given the long or short option as a StringMethods in org.apache.commons.cli that return types with arguments of type Option Modifier and Type Method Description java.util.Comparator<Option>HelpFormatter. getOptionComparator()Comparator used to sort the options when they output in help text.java.util.Collection<Option>OptionGroup. getOptions()java.util.Collection<Option>Options. getOptions()Retrieve a read-only list of options in this set(package private) java.util.List<Option>Options. helpOptions()Returns the Options for use by the HelpFormatter.java.util.Iterator<Option>CommandLine. iterator()Returns an iterator over the Option members of CommandLine.Methods in org.apache.commons.cli with parameters of type Option Modifier and Type Method Description protected voidCommandLine. addOption(Option opt)Add an option to the command line.CommandLine.BuilderCommandLine.Builder. addOption(Option opt)Add an option to the command line.OptionGroupOptionGroup. addOption(Option option)Add the specifiedOptionto this group.OptionsOptions. addOption(Option opt)Adds an option instanceprivate voidHelpFormatter. appendOption(java.lang.StringBuffer buff, Option option, boolean required)Appends the usage clause for an Option to a StringBuffer.intHelpFormatter.OptionComparator. compare(Option opt1, Option opt2)Compares its two arguments for order.OptionGroupOptions. getOptionGroup(Option opt)Returns the OptionGroup theoptbelongs to.private voidDefaultParser. handleOption(Option option)voidParser. processArgs(Option opt, java.util.ListIterator<java.lang.String> iter)Deprecated.Process the argument values for the specified Optionoptusing the values retrieved from the specified iteratoriter.voidOptionGroup. setSelected(Option option)Set the selected option of this group toname.private voidDefaultParser. updateRequiredOptions(Option option)Removes the option or its group from the list of expected elements.private voidParser. updateRequiredOptions(Option opt)Deprecated.Removes the option or its group from the list of expected elements.Method parameters in org.apache.commons.cli with type arguments of type Option Modifier and Type Method Description voidHelpFormatter. setOptionComparator(java.util.Comparator<Option> comparator)Set the comparator used to sort the options when they output in help text.Constructors in org.apache.commons.cli with parameters of type Option Constructor Description AlreadySelectedException(OptionGroup group, Option option)Construct a newAlreadySelectedExceptionfor the specified option group.MissingArgumentException(Option option)Construct a newMissingArgumentExceptionwith the specified detail message.
-