clikt / com.github.ajalt.clikt.parameters.options / triple

triple

fun <EachT : Any, ValueT> NullableOption<EachT, ValueT>.triple(): NullableOption<Triple<ValueT, ValueT, ValueT>, ValueT>

Change to option to take three values, held in a Triple

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

Example:

val opt: Triple<Int, Int, Int>? by option().int().triple()