Interface CommandOption

The options of the command

commander .option() to learn more

interface CommandOption {
    defaultValue?: any;
    description?: string;
    flags: string;
    fn?: ParserType;
    required?: boolean;
}

Properties

defaultValue?: any

The default value

description?: string

The description of the option

flags: string

The flags the command uses eg '-p,--port'

The function to parse the value

required?: boolean

True if the option is required