Interface FlagDefine<T>

Type Parameters

  • T

Hierarchy

  • FlagDefine

Implemented by

Properties

default: T
isValid: ((v: T) => boolean)

Type declaration

    • (v: T): boolean
    • Parameters

      • v: T

      Returns boolean

name: string
short: string
usage: string
value: T

The value parsed by this flag

values?: T[]

Methods

  • Parsed to this flag

    Parameters

    • Optional val: string

      The parsed command line value

    Returns boolean

  • Returns a string description of the default value

    Returns string

  • Returns whether it is a bool flag

    Returns boolean

  • set value to default value

    Returns void

  • Returns a string description of the list of valid values

    Returns string

Generated using TypeDoc