clikt / com.github.ajalt.clikt.parameters.groups / groupChoice

groupChoice

fun OptionGroup> RawOption.groupChoice(choices: Map<String, T>): ChoiceGroup

Convert the option to an option group based on a fixed set of values.

Example:

``` kotlin option().choice(mapOf(“foo” to FooOptionGroup(), “bar” to BarOptionGroup()))

See Also

com.github.ajalt.clikt.parameters.types.choice

fun OptionGroup> RawOption.groupChoice(vararg choices: Pair<String, T>): ChoiceGroup

Convert the option to an option group based on a fixed set of values.

Example:

``` kotlin option().choice(“foo” to FooOptionGroup(), “bar” to BarOptionGroup())

See Also

com.github.ajalt.clikt.parameters.types.choice