CommanderArgumentCreationContext

A class representing a context for creating a CommanderArgument

Since

0.1.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The default value of the argument

Link copied to clipboard

The description of the argument

Link copied to clipboard
lateinit var name: String

The name of the argument

Link copied to clipboard

If the argument is required

Link copied to clipboard

The description of the argument's value

Link copied to clipboard

The name of the argument's value

Link copied to clipboard

The CommanderValueValidator of the value of the argument

Functions

Link copied to clipboard
fun description(description: String)

Add description to the argument

Link copied to clipboard

Generate the CommanderArgument from the context

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

Set the default value of the argument