argument

fun argument(cliArgument: CommanderArgument)(source)

Add an argument to the command

Since

0.1.0

Parameters

cliArgument

The argument to add


Add an argument to the command

Since

0.1.0

Parameters

init

The init function to create the argument


fun argument(name: String, description: String? = null, required: Boolean = false, defaultValue: String? = null, valueName: String? = null, valueDescription: String? = null, valueValidator: CommanderValueValidator? = null)(source)

Add an argument to the command

Since

0.1.0

Parameters

name

The name of the argument

description

The description of the argument

required

If the argument is required

defaultValue

The default value of the argument

valueName

The value name of the argument

valueDescription

The value description of the argument

valueValidator

The value validator of the argument