validate Collection
open override fun validateCollection(message: String, predicate: (List<T>) -> Boolean): OptionListBuilder<T>(source)
Adds a validator that checks the entire list against the given predicate.
Parameters
message
Template message for validation errors. Supports:
@name: property name
@value: the list (properly formatted)
@switches: option switches (e.g. "--port|-p")
predicate
Function that returns true if the list is valid