argument

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

Create a new argument

Return

The created argument

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