Skip to content

OptionListBuilder<T>

extendsPropertyDelegateProvider<Arguments, ReadOnlyProperty<Arguments, List<T>>>

A repeatable option, reached via OptionBuilder.multiple. Resolves to an empty list when the option never appears, unless required is set.

OptionBuilders.kt

Functions

provideDelegate

open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, List<T>>
OptionBuilders.kt

required

fun required(): OptionListBuilder<T>

Requires at least one occurrence of the option.

OptionBuilders.kt

Released under the Apache License 2.0.