CommanderOptionCreationContext

A class representing a context for creating a CommanderOption

Since

0.1.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The aliases of the option

Link copied to clipboard

The default value of the option

Link copied to clipboard

The description of the option

Link copied to clipboard

If the option has a value

Link copied to clipboard
lateinit var name: String

The name of the option

Link copied to clipboard

If the option is required

Link copied to clipboard

The short aliases of the option

Link copied to clipboard

The description of the value

Link copied to clipboard

The name of the value

Link copied to clipboard

The validator of the value

Functions

Link copied to clipboard
fun alias(vararg aliases: String)

Add aliases to the option

Link copied to clipboard
fun description(description: String)

Set the description of the option

Link copied to clipboard

Set the default value of the option

Link copied to clipboard
fun required(required: Boolean = true)

Set the default value of the option

Link copied to clipboard
fun shortAlias(vararg aliases: String)

Add short aliases to the option