Skip to content

gunshi / default / ArgToken

Interface: ArgToken

Argument token.

Properties

PropertyTypeDescription
indexnumberArgument token index, e.g --foo bar => --foo index is 0, bar index is 1.
inlineValue?booleanInline value, e.g. --foo=bar => true, -x=bar => true.
kindArgTokenKindArgument token kind.
name?stringOption name, e.g. --foo => foo, -x => x.
rawName?stringRaw option name, e.g. --foo => --foo, -x => -x.
value?stringOption 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.

Released under the MIT License.