Skip to main content

Arguments <O, P>

Type parameters

Index

Properties

command

command: string[]

Current running command and sub-commads. Is an array split on “:”.

errors

errors: Error[]

List of errors detected during argument parsing.

options

options: O

Mapping of options to their values passed on the command line (or their default).

params

params: MapParamType<P>

List of parameter values passed on the command line.

rest

rest: ArgList

List of arguments that appear after “–” on the command line.

unknown

Mapping of unconfigured options to string values.