requireIfAnyPresent

open override fun requireIfAnyPresent(vararg refs: KProperty<*>): OptionListBuilder<T>(source)

Makes this list option required if any of the referenced options are present. This creates a conditional requirement where providing any of the trigger options makes this option mandatory.

Return

This builder for method chaining

Parameters

refs

Property references to options that trigger this requirement