clikt / com.github.ajalt.clikt.parsers / OptionParser / Invocation

Invocation

data class Invocation

The input from a single instance of an option input.

Parameters

name - The name that was used to invoke the option. May be empty if the value was not retrieved from the command line (e.g. values from environment variables).

values - The values provided to the option. Will always have a size equal to Option.nvalues.

Constructors

<init>

Invocation(name: String, values: List<String>)

The input from a single instance of an option input.

Properties

name

val name: String

The name that was used to invoke the option. May be empty if the value was not retrieved from the command line (e.g. values from environment variables).

values

val values: List<String>

The values provided to the option. Will always have a size equal to Option.nvalues.