ParseArgsOptionConfig - Node documentation
interface ParseArgsOptionConfig

Usage in Deno

import { type ParseArgsOptionConfig } from "node:util";

Properties

type: "string" | "boolean"

Type of argument.

optional
multiple: boolean | undefined

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.

optional
short: string | undefined

A single character alias for the option.

optional
default:
string
| boolean
| string[]
| boolean[]
| undefined

The default option value when it is not set by args. It must be of the same type as the the type property. When multiple is true, it must be an array.