Uses of Class
io.vertx.core.cli.Option
Packages that use Option
-
Uses of Option in io.vertx.core.cli
Subclasses of Option in io.vertx.core.cliModifier and TypeClassDescriptionclassTypedOption<T>An implementation ofOptionfor java specifying the type of object received by the option.Fields in io.vertx.core.cli with type parameters of type OptionModifier and TypeFieldDescriptionprotected Comparator<Option> UsageMessageFormatter.optionComparatorComparator used to sort the options when they output in help textMethods in io.vertx.core.cli that return OptionModifier and TypeMethodDescriptionAdds a choice to the list of values accepted by this option.Gets anOptionbased on its name (short name, long name or argument name).InvalidValueException.getOption()MissingValueException.getOption()Option.setArgName(String argName) Sets te arg name for this option.Option.setChoices(Set<String> choices) Sets the list of values accepted by this option.Option.setDefaultValue(String defaultValue) Sets the default value of this optionOption.setDescription(String description) Sets te description of this option.Option.setFlag(boolean flag) Configures the currentOptionto be a flag.Option.setHelp(boolean help) Sets whether or not this option is a "help" optionOption.setHidden(boolean hidden) Sets whether or not this option should be hiddenOption.setLongName(String longName) Sets the long name of this option.Option.setMultiValued(boolean multiValued) Sets whether or not this option can receive several values.Option.setRequired(boolean required) Sets whether or not this option is mandatory.Option.setShortName(String shortName) Sets the short name of this option.Option.setSingleValued(boolean singleValued) Sets whether or not this option can receive a value.Methods in io.vertx.core.cli that return types with arguments of type OptionModifier and TypeMethodDescriptionMissingOptionException.getExpected()UsageMessageFormatter.getOptionComparator()Comparator used to sort the options when they output in help text.AmbiguousOptionException.getOptions()CLI.getOptions()Gets the list of options.Methods in io.vertx.core.cli with parameters of type OptionModifier and TypeMethodDescriptionbooleanCommandLine.acceptMoreValues(Option option) Checks whether or not the given option accept more values.Adds an option.protected voidUsageMessageFormatter.appendOption(StringBuilder buff, Option option) Appends the usage clause for an Option to a StringBuilder.CommandLine.getRawValueForOption(Option option) Gets the raw value of the given option.CommandLine.getRawValues(Option option) Deprecated.CommandLine.getRawValuesForOption(Option option) Gets the raw values of the given option.booleanCommandLine.isOptionAssigned(Option option) Checks whether or not the given option has been assigned in the command line.booleanCommandLine.isSeenInCommandLine(Option option) Checks whether or not the given option has been seen in the user command line.Method parameters in io.vertx.core.cli with type arguments of type OptionModifier and TypeMethodDescriptionCLI.addOptions(List<Option> options) Adds a set of options.voidUsageMessageFormatter.computeOptionsAndArguments(StringBuilder buffer, List<Option> options, List<Argument> arguments) Computes the help for the specified Options to the specified writer.protected StringBuilderUsageMessageFormatter.renderOptionsAndArguments(StringBuilder sb, List<Option> options, List<Argument> arguments) Renders the specified Options and Arguments and return the rendered output in a StringBuilder.voidUsageMessageFormatter.setOptionComparator(Comparator<Option> comparator) Set the comparator used to sort the options when they output in help text.CLI.setOptions(List<Option> options) Sets the list of arguments.Constructors in io.vertx.core.cli with parameters of type OptionModifierConstructorDescriptionInvalidValueException(Option option, String value) Creates a new instance ofInvalidValueExceptionfor the given option and the given value.InvalidValueException(Option option, String value, Exception cause) Creates a new instance ofInvalidValueExceptionfor the given option and the given value.MissingValueException(Option option) Creates a new instance ofMissingValueExceptionwhen an option requiring a value does not receive a value.Constructor parameters in io.vertx.core.cli with type arguments of type OptionModifierConstructorDescriptionAmbiguousOptionException(String token, List<Option> matchingOpts) Creates a new instance ofAmbiguousOptionException.MissingOptionException(Collection<Option> expected) Creates a new instance ofMissingOptionException.
CommandLine.getRawValuesForOption(Option)