pair

fun <T : Any> ProcessedArgument<T, T>.pair(): ProcessedArgument<Pair<T, T>, T>

Require exactly two values to this argument, and store them in a Pair.

This must be called after converting the value type, and before other transforms.

Example:

val arg: Pair<Int, Int> by argument().int().pair()