argument

fun <U : Any> argument(name: String, type: ArgumentType<U>, block: ArgumentCommandDsl<U>.() -> Unit = {})

Adds another argument child node to this argument node.

Parameters

U

The type of the new argument value

name

The name of the argument, used to retrieve the value later

type

The ArgumentType that defines how to parse this argument

block

A configuration lambda for the argument node