Type Parameters

  • T

Constructors

  • Type Parameters

    • T

    Parameters

    • name: string
    • index: number
    • argument: Argument<T>

    Returns CommandArgument<T>

Properties

coalescing: boolean

Does the argument can take multiple words.

defaultValue: undefined | T

The default value of the argument.

description: string

The description of the argument, currently not used anywhere.

index: number
name: string
optional: boolean

Is the argument optional or not.

parse: ArgumentParser<T>

The parse function of the argument.

The type of the argument.

validate: ArgumentValidator

The validate function of the argument.

Accessors

  • get isSimple(): boolean
  • Is the argument not optional, doesn't have any default value and only takes one word.

    Returns boolean

    • Is the argument simple.
  • get isSkipable(): boolean
  • Is the argument optional or has a default value.

    Returns boolean

    • Does the argument can be skipped.

Generated using TypeDoc