Skip to content

ParseArgsConfig

[<Interface>]
type ParseArgsConfig =
    abstract member allowNegative: bool option with get, set
    abstract member allowPositionals: bool option with get, set
    abstract member args: string array option with get, set
    abstract member options: ParseArgsOptionsConfig option with get, set
    abstract member strict: bool option with get, set
    abstract member tokens: bool option with get, set
    static member Create (?args: string array, ?options: ParseArgsOptionsConfig, ?strict: bool, ?allowPositionals: bool, ?allowNegative: bool, ?tokens: bool) : ParseArgsConfig
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member allowNegative: bool option with get, set

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

@since v22.4.0

abstract member allowPositionals: bool option with get, set

Whether this command accepts positional arguments.

abstract member args: string array option with get, set

Array of argument strings.

abstract member options: ParseArgsOptionsConfig option with get, set

Used to describe arguments known to the parser.

abstract member strict: bool option with get, set

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

abstract member tokens: bool option with get, set

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.

Methods

static member Create (?args: string array, ?options: ParseArgsOptionsConfig, ?strict: bool, ?allowPositionals: bool, ?allowNegative: bool, ?tokens: bool) : ParseArgsConfig