class CommandLine extends AnyRef
The parser transforms a CLI (a model) into an io.vertx.scala.core.cli.CommandLine. This io.vertx.scala.core.cli.CommandLine has stored the argument and option values. Only instance of parser should create objects of this type.
- Alphabetic
- By Inheritance
- CommandLine
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CommandLine(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
acceptMoreValues(option: Option): Boolean
Checks whether or not the given option accept more values.
Checks whether or not the given option accept more values. * @param option the option see Option
- returns
true if the option accepts more values, false otherwise.
-
def
allArguments(): Buffer[String]
- returns
the ordered list of arguments. Arguments are command line arguments not matching an option.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
cli(): CLI
- returns
the model of this command line object.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getArgumentValue[T](index: Int)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): scala.Option[T]
Gets the value of an argument with the given index.
Gets the value of an argument with the given index. * @param index the index
- returns
the value,
null
if not set
-
def
getArgumentValue[T](name: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): scala.Option[T]
Gets the value of an argument with the matching name (arg name).
Gets the value of an argument with the matching name (arg name). * @param name the name
- returns
the value,
null
if not set
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOptionValue[T](name: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): scala.Option[T]
Gets the value of an option with the matching name (can be the long name, short name or arg name).
Gets the value of an option with the matching name (can be the long name, short name or arg name). * @param name the name
- returns
the value,
null
if not set
-
def
getRawValueForArgument(arg: Argument): scala.Option[String]
Gets the raw value of the given argument.
Gets the raw value of the given argument. Raw values are the values as given in the user command line. * @param arg the argument see Argument
- returns
the value,
null
if none.
-
def
getRawValueForOption(option: Option): scala.Option[String]
Gets the raw value of the given option.
Gets the raw value of the given option. Raw values are the values as given in the user command line. * @param option the option see Option
- returns
the value,
null
if none.
-
def
getRawValues(option: Option): Buffer[String]
Gets the raw values of the given option.
Gets the raw values of the given option. Raw values are simple "String", not converted to the option type. * @param option the option see Option
- returns
the list of values, empty if none
-
def
getRawValuesForArgument(argument: Argument): Buffer[String]
Gets the raw values of the given argument.
Gets the raw values of the given argument. Raw values are simple "String", not converted to the argument type. * @param argument the argument see Argument
- returns
the list of values, empty if none
-
def
getRawValuesForOption(option: Option): Buffer[String]
Gets the raw values of the given option.
Gets the raw values of the given option. Raw values are simple "String", not converted to the option type. * @param option the option see Option
- returns
the list of values, empty if none
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isArgumentAssigned(arg: Argument): Boolean
Checks whether or not the given argument has been assigned in the command line.
Checks whether or not the given argument has been assigned in the command line. * @param arg the argument see Argument
- returns
true
if the argument has received a value, false otherwise.
-
def
isAskingForHelp(): Boolean
Checks whether or not the user has passed a "help" option and is asking for help.
Checks whether or not the user has passed a "help" option and is asking for help. * @return
true
if the user command line has enabled a "Help" option, false otherwise. -
def
isFlagEnabled(name: String): Boolean
Gets the value of an option marked as a flag.
Gets the value of an option marked as a flag.
Calling this method an a non-flag option throws an IllegalStateException. * @param name the option name
- returns
true
if the flag has been set in the command line,false
otherwise.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isOptionAssigned(option: Option): Boolean
Checks whether or not the given option has been assigned in the command line.
Checks whether or not the given option has been assigned in the command line. * @param option the option see Option
- returns
true
if the option has received a value, false otherwise.
-
def
isSeenInCommandLine(option: Option): Boolean
Checks whether or not the given option has been seen in the user command line.
Checks whether or not the given option has been seen in the user command line. * @param option the option see Option
- returns
true
if the user command line has used the option
-
def
isValid(): Boolean
Checks whether or not the command line is valid, i.e.
Checks whether or not the command line is valid, i.e. all constraints from arguments and options have been satisfied. This method is used when the parser validation is disabled. * @return
true
if the current CommandLine object is valid. false otherwise. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )