requireIfValue

fun <U> requireIfValue(ref: KProperty<U>, predicate: (U?) -> Boolean): OptionBuilder<T>(source)

Requires that this option be present when the specified property matches the given predicate.