import { type Options } from "https://deno.land/x/yargs_parser@yargs-parser-v21.1.1-deno/build/lib/yargs-parser-types.d.ts";
Properties
alias: Dictionary<string | string[]>
An object representing the set of aliases for a key: { alias: { foo: ['f']} }
.
array: ArrayOption | ArrayOption[]
Indicate that keys should be parsed as an array: { array: ['foo', 'bar'] }
.
Indicate that keys should be parsed as an array and coerced to booleans / numbers:
{ array: [ { key: 'foo', boolean: true }, {key: 'bar', number: true} ] }`.
config: string | string[] | Dictionary<boolean | ConfigCallback>
Indicate a key that represents a path to a configuration file (this file will be loaded and parsed).
configObjects: Dictionary<any>[]
configuration objects to parse, their properties will be set as arguments
coerce: Dictionary<CoerceCallback>
Provide a custom synchronous function that returns a coerced value from the argument provided (or throws an error), e.g.
{ coerce: { foo: function (arg) { return modifiedArg } } }
.