Type Alias ArgParserConfig

ArgParserConfig: {
    exitOnError?: boolean;
    exitOnStop?: boolean;
    ignoreUnrecognized?: boolean;
    name?: string;
    version?: string;
}

Configuration for the argument parser.

Type declaration

  • OptionalexitOnError?: boolean

    Whether to exit the program on error (true by default).

  • OptionalexitOnStop?: boolean

    Whether to exit the program on StopException (true by default).

  • OptionalignoreUnrecognized?: boolean

    Whether to ignore unrecognized arguments (false by default).

  • Optionalname?: string

    The name of the program.

  • Optionalversion?: string

    The version of the program.