Interface ICliCommandPropertyOptionMetadata

Command option definition config.

interface ICliCommandPropertyOptionMetadata {
    default?: (() => any);
    description?: string;
    method: string;
    name: string;
    parser?: ((value) => any);
    required?: boolean;
    shortName?: string;
    type: "option";
}

Hierarchy (view full)

Properties

default?: (() => any)

Option default value factory function.

Type declaration

    • (): any
    • Returns any

description?: string

Option description. Will be used in the help message.

method: string
name: string

Option name. Will be used during the command parsing as --name.

parser?: ((value) => any)

Optional option value parser.

Type declaration

    • (value): any
    • Parameters

      • value: string

      Returns any

required?: boolean

Is option required.

shortName?: string

Option short name. Will be used during the command parsing as -n.

type: "option"