group Switch
fun <T : OptionGroup> RawOption.groupSwitch(choices: Map<String, T>): ChoiceGroup<T, T?>
Content copied to clipboard
Convert the option into a set of flags that each map to an option group.
Example:
option().groupSwitch(mapOf("--foo" to FooOptionGroup(), "--bar" to BarOptionGroup()))
Content copied to clipboard
fun <T : OptionGroup> RawOption.groupSwitch(vararg choices: <ERROR CLASS><String, T>): ChoiceGroup<T, T?>
Content copied to clipboard
Convert the option into a set of flags that each map to an option group.
Example:
option().groupSwitch("--foo" to FooOptionGroup(), "--bar" to BarOptionGroup())
Content copied to clipboard