interface
util.ParseArgsOptionDescriptor
interface ParseArgsOptionDescriptor
- default?: string | boolean | string[] | boolean[]
The value to assign to the option if it does not appear in the arguments to be parsed. The value must match the type specified by the
typeproperty. Ifmultipleistrue, it must be an array. No default value is applied when the option does appear in the arguments to be parsed, even if the provided value is falsy. - multiple?: boolean
Whether this option can be provided multiple times. If
true, all values will be collected in an array. Iffalse, values for the option are last-wins.