Skip to main content

ParserOptions <O, P>

Hierarchy

  • ParserSettings
    • ParserOptions

Index

Properties

optionalcommands

commands?: string[] | CommandChecker

List of valid commands. Sub-commands should be denoted with ":".

optionalloose

loose?: boolean

Enable loose mode parsing.

options

options: MapOptionConfig<O>

Mapping of options to their type and configurations.

optionalparams

params?: MapParamConfig<P>

List of param configurations (in order).

optionalunknown

unknown?: boolean

Allow unknown options to be passed. Will be placed in a special unknown object.

optionalvariadic

variadic?: boolean

Allow variadic params to be passed. Will be accumlated after configured params.