Skip to main content
ParseArgsConfig - node__util.d.ts - Node documentation
interface ParseArgsConfig

Usage in Deno

```typescript import { type ParseArgsConfig } from "node:node__util.d.ts"; ```

Properties

optional
args: string[] | undefined
Array of argument strings.
optional
options: ParseArgsOptionsConfig | undefined
Used to describe arguments known to the parser.
optional
strict: boolean | undefined
Should an error be thrown when unknown arguments are encountered, or when arguments are passed that do not match the `type` configured in `options`.
optional
allowPositionals: boolean | undefined
Whether this command accepts positional arguments.
optional
allowNegative: boolean | undefined
If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`.
optional
tokens: boolean | undefined
Return the parsed tokens. This is useful for extending the built-in behavior, from adding additional checks through to reprocessing the tokens in different ways.