Skip to content

ParseArgsOptionDescriptor

[<Interface>]
type ParseArgsOptionDescriptor =
    abstract member default: U4<string,bool,string array,bool array> option with get, set
    abstract member multiple: bool option with get, set
    abstract member short: string option with get, set
    abstract member type: ParseArgsOptionsType with get, set
    static member Create (type: ParseArgsOptionsType, ?multiple: bool, ?short: string, ?default: U4<string,bool,string array,bool array>) : ParseArgsOptionDescriptor
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member default: U4<string,bool,string array,bool array> option with get, set

The value to assign to the option if it does not appear in the arguments to be parsed. The value must match the type specified by the type property. If multiple is true, it must be an array. No default value is applied when the option does appear in the arguments to be parsed, even if the provided value is falsy.

@since v18.11.0

abstract member multiple: bool option with get, set

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.

abstract member short: string option with get, set

A single character alias for the option.

abstract member type: ParseArgsOptionsType with get, set

Type of argument.

Methods

static member Create (type: ParseArgsOptionsType, ?multiple: bool, ?short: string, ?default: U4<string,bool,string array,bool array>) : ParseArgsOptionDescriptor