deno.com

interface ParseArgsConfig

Properties #

#args: string[] | undefined
optional

Array of argument strings.

#options: ParseArgsOptionsConfig | undefined
optional

Used to describe arguments known to the parser.

#strict: boolean | undefined
optional

Should an error be thrown when unknown arguments are encountered, or when arguments are passed that do not match the type configured in options.

#allowPositionals: boolean | undefined
optional

Whether this command accepts positional arguments.

#allowNegative: boolean | undefined
optional

If true, allows explicitly setting boolean options to false by prefixing the option name with --no-.

#tokens: boolean | undefined
optional

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.