vertx / io.vertx.core.cli / CommandLine / getArgumentValue

getArgumentValue

abstract fun <T : Any> getArgumentValue(name: String): T

Gets the value of an argument with the matching name (arg name).

Parameters

name - the name

- the expected type

Return
the value, null if not set

abstract fun <T : Any> getArgumentValue(index: Int): T

Gets the value of an argument with the given index.

Parameters

index - the index

- the expected type

Return
the value, null if not set