Interface: Options
Properties
alias?
optionalalias?:object
Map of option name to one or more aliases; aliases share the same value.
Index Signature
[key: string]: string | string[]
boolean?
optionalboolean?:string[]
Option names to always treat as booleans, so the following token is not consumed as a value.
default?
optionaldefault?:object
Map of option name to default value, used when the option is absent.
Index Signature
[key: string]: any
stopEarly?
optionalstopEarly?:boolean
When true, the first positional argument and everything after it are pushed into _.
string?
optionalstring?:string[]
Option names to always coerce to strings (e.g. --port 80 yields "80").
unknown?
optionalunknown?: (optionName) =>boolean
Callback invoked for each unrecognized option; return false to drop it, true (default) to keep it.
Parameters
optionName
string
Returns
boolean