Bun

interface

util.ParseArgsOptionDescriptor

interface ParseArgsOptionDescriptor

  • default?: string | boolean | string[] | boolean[]

    The default value to be used if (and only if) the option does not appear in the arguments to be parsed. It must be of the same type as the type property. When multiple is true, it must be an array.

  • multiple?: boolean

    Whether this option can be provided multiple times. If true, all values will be collected in an array. If false, values for the option are last-wins.

  • short?: string

    A single character alias for the option.

  • type: ParseArgsOptionsType

    Type of argument.