ParseArgsConfig

external interface ParseArgsConfig(source)

Properties

Link copied to clipboard
abstract external var allowNegative: Boolean?

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

Link copied to clipboard
abstract external var allowPositionals: Boolean?

Whether this command accepts positional arguments.

Link copied to clipboard
abstract external var args: ReadonlyArray<String>?

Array of argument strings.

Link copied to clipboard
abstract external var options: ParseArgsOptionsConfig?

Used to describe arguments known to the parser.

Link copied to clipboard
abstract external var strict: Boolean?

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

Link copied to clipboard
abstract external var tokens: Boolean?

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.