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| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
Properties
abstract member allowNegative: bool option with get, set
abstract member allowNegative: bool option with get, setIf 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
abstract member allowPositionals: bool option with get, setWhether this command accepts positional arguments.
abstract member options: ParseArgsOptionsConfig option with get, set
abstract member options: ParseArgsOptionsConfig option with get, setUsed to describe arguments known to the parser.
abstract member strict: bool option with get, set
abstract member strict: bool option with get, setShould 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
abstract member tokens: bool option with get, setReturn 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