Skip to content

Argument

Declares a positional argument on a Command constructor parameter, named after the parameter.

The parameter's type determines the converter. A List<T> becomes a trailing positional that captures the rest (at most one, declared last). As with Option, a non-nullable type is required and a nullable type is optional.

Argument.kt

Properties

help

val help: String
Argument.kt

Released under the Apache License 2.0.