Class StringArgumentAbstract

Represents a string command argument.

Example

class MyArgument extends StringArgument {
name = 'my-argument';
}

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

choices: string[] = []

The choices of the argument.

command: Command

The command the argument belongs to.

default?: string

The default value of the argument.

description?: string

The description of the argument.

max?: number

The max size of the argument.

min?: number

The min size of the argument.

name: string

The name of the argument.

required: boolean = true

Whether the argument is required.

Accessors

Methods