Choice Group
class ChoiceGroup<GroupT : OptionGroup, OutT> : ParameterGroupDelegate<OutT>
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open fun parameterHelp(context: Context): HelpFormatter.ParameterHelp.Group?
Content copied to clipboard
Link copied to clipboard
Called after all of a command's parameters have been finalized to perform validation of the final values.
Link copied to clipboard
open operator override fun provideDelegate(thisRef: CliktCommand, prop: KProperty<*>): <ERROR CLASS><CliktCommand, OutT>
Content copied to clipboard
Implementations must call CliktCommand.registerOptionGroup
Properties
Extensions
Link copied to clipboard
fun <T : OptionGroup> ChoiceGroup<T, T?>.defaultByName(name: String): ChoiceGroup<T, T>
Content copied to clipboard
If a groupChoice or groupSwitch option is not called on the command line, use the value of the group with a switch or choice name.
Link copied to clipboard
If a groupChoice or groupSwitch option is not called on the command line, throw a MissingOption exception.