Uses of Class
io.vertx.core.cli.Argument
-
Packages that use Argument Package Description io.vertx.core.cli -
-
Uses of Argument in io.vertx.core.cli
Subclasses of Argument in io.vertx.core.cli Modifier and Type Class Description class
TypedArgument<T>
An implementation ofArgument
for java specifying the type of object received by the argument.Methods in io.vertx.core.cli that return Argument Modifier and Type Method Description Argument
CLI. getArgument(int index)
Gets anArgument
based on its index.Argument
CLI. getArgument(String name)
Gets anArgument
based on its name (argument name).Argument
InvalidValueException. getArgument()
Argument
MissingValueException. getArgument()
Argument
Argument. setArgName(String argName)
Sets the argument name of thisArgument
.Argument
Argument. setDefaultValue(String defaultValue)
Sets the default value of thisArgument
.Argument
Argument. setDescription(String description)
Sets the description of theArgument
.Argument
Argument. setHidden(boolean hidden)
Sets whether or not the currentArgument
is hidden.Argument
Argument. setIndex(int index)
Sets the argument index.Argument
Argument. setMultiValued(boolean multiValued)
Sets whether or not the argument can receive several values.Argument
Argument. setRequired(boolean required)
Sets whether or not the currentArgument
is required.Methods in io.vertx.core.cli that return types with arguments of type Argument Modifier and Type Method Description List<Argument>
CLI. getArguments()
Gets the list of defined arguments.Methods in io.vertx.core.cli with parameters of type Argument Modifier and Type Method Description CLI
CLI. addArgument(Argument arg)
Adds an argument.protected void
UsageMessageFormatter. appendArgument(StringBuilder buff, Argument argument, boolean required)
Appends the usage clause for an Argument to a StringBuilder.String
CommandLine. getRawValueForArgument(Argument arg)
Gets the raw value of the given argument.List<String>
CommandLine. getRawValuesForArgument(Argument argument)
Gets the raw values of the given argument.boolean
CommandLine. isArgumentAssigned(Argument arg)
Checks whether or not the given argument has been assigned in the command line.Method parameters in io.vertx.core.cli with type arguments of type Argument Modifier and Type Method Description CLI
CLI. addArguments(List<Argument> args)
Adds a set of arguments.CLI
CLI. setArguments(List<Argument> args)
Sets the list of arguments.Constructors in io.vertx.core.cli with parameters of type Argument Constructor Description Argument(Argument other)
Creates a new instance ofArgument
by copyingother
.InvalidValueException(Argument argument, String value, Exception cause)
Creates a new instance ofInvalidValueException
for the given argument and the given value.MissingValueException(Argument argument)
Creates a new instance ofMissingValueException
when a mandatory argument is not set in the user command line.
-