multiple

fun <T : Any> ProcessedArgument<T, T>.multiple(required: Boolean = false): ProcessedArgument<List<T>, T>

Accept any number of values to this argument.

Only one argument in a command may use this function, and the command may not have subcommands. This must be called after all other transforms.

Example:

val arg: List<Int> by argument().int().multiple()