CmdArg

class CmdArg<T>

Typed handle passed into an argument or optional continuation.

The handle carries everything needed to attach and read one argument: its Brigadier type, its name and the fallback for omitted optional branches. Handlers retrieve the parsed value through get without repeating name or type at the call site.

Type Parameters

T

the resolved value type; nullable for optional arguments whose default is null