ParsedValues

The typed result of a successful parse, keyed by each parameter's canonical name.

Functions

Link copied to clipboard
fun flag(name: String): Boolean

Returns the state of the flag name (its default if it was never supplied).

Link copied to clipboard
fun <T> list(name: String): List<T>

Returns the accumulated list bound to a multiple parameter name (empty if absent).

Link copied to clipboard
fun <T> value(name: String): T

Returns the value bound to name, cast to T. For required or defaulted parameters, where a value is always present.

Link copied to clipboard
fun <T> valueOrNull(name: String): T?

Returns the value bound to name cast to T, or null if it was absent.