Interface: ArgToken
Argument token.
Signature
ts
interface ArgTokenProperties
| Name | Type | Description |
|---|---|---|
index | number | Argument token index, e.g --foo bar => --foo index is 0, bar index is 1. |
inlineValue (optional) | boolean | Inline value, e.g. --foo=bar => true, -x=bar => true. |
kind | ArgTokenKind | Argument token kind. |
name (optional) | string | Option name, e.g. --foo => foo, -x => x. |
rawName (optional) | string | Raw option name, e.g. --foo => --foo, -x => -x. |
value (optional) | string | Option value, e.g. --foo=bar => bar, -x=bar => bar. If the allowCompatible option is true, short option value will be same as Node.js parseArgs behavior. |
