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

OptionDelegate

interface OptionDelegate : GroupableOption, ReadOnlyProperty<ParameterHolder, T>

An option that functions as a property delegate

Properties

Name Summary
value The value for this option.abstract val value: T

Functions

Name Summary
getValue open fun getValue(thisRef:ParameterHolder, property:KProperty<*>): T
provideDelegate Implementations must call ParameterHolder.registerOptionabstract operator fun provideDelegate(thisRef:ParameterHolder, prop:KProperty<*>):ReadOnlyProperty<ParameterHolder, T>

Inheritors

Name Summary
FlagOption An Option that has no values.class FlagOption<T> :OptionDelegate<T>
OptionWithValues An Option that takes one or more values.class OptionWithValues<AllT, EachT, ValueT> :OptionDelegate<AllT>,GroupableOption