Arg<T>: {
    default?: T;
    desc: string;
    extras?: boolean;
    flags?: string[];
    name: string;
    optional?: boolean;
}

Type Parameters

  • T = any

Type declaration

  • Optionaldefault?: T

    Default value if argument is not used

  • desc: string

    Argument description for help page

  • Optionalextras?: boolean

    Collects any unmatched arguments

  • Optionalflags?: string[]

    Available shorthands

  • name: string

    Argument/property name

  • Optionaloptional?: boolean

    Argument is not required