onValue

fun onValue(callback: (List<T>?) -> Unit): ArityOptionBuilder<T>(source)

Registers a callback to be executed when this arity option receives a value. The callback receives List? - null if the option was not provided, List if it was.

Return

This builder for method chaining

Parameters

callback

Function to execute with the parsed list value