ParameterHolder

interface ParameterHolder

Functions

registerOption
Link copied to clipboard
common
abstract fun registerOption(option: GroupableOption)
Register an option with this command or group.

Inheritors

CliktCommand
Link copied to clipboard
OptionGroup
Link copied to clipboard

Extensions

mutuallyExclusiveOptions
Link copied to clipboard
common
fun <T : Any> ParameterHolder.mutuallyExclusiveOptions(option1: OptionDelegate<out T?>, option2: OptionDelegate<out T?>, vararg options: OptionDelegate<out T?>, name: String? = null, help: String? = null): MutuallyExclusiveOptions<T, T?>
Declare a set of two or more mutually exclusive options.
option
Link copied to clipboard
common
fun ParameterHolder.option(vararg names: String, help: String = "", metavar: String? = null, hidden: Boolean = false, envvar: String? = null, helpTags: Map<String, String> = emptyMap(), completionCandidates: CompletionCandidates? = null, valueSourceKey: String? = null): RawOption
Create a property delegate option.