Skip to content
Prev Previous commit
Next Next commit
Fix reference
  • Loading branch information
shadowspawn committed Jul 15, 2022
commit 0bd9da63c6a436f93b3beb6c35d0044ee4b245cb
4 changes: 2 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ changes:
* `values` {Object} A mapping of parsed option names with their {string}
or {boolean} values.
* `positionals` {string\[]} Positional arguments.
* `tokens` {Object\[]|undefined} See [`parseArgs`' `tokens`][] section.
* `tokens` {Object\[] | undefined} See [parseArgs tokens](#parseargs-tokens) section.

Provides a higher level API for command-line argument parsing than interacting
with `process.argv` directly. Takes a specification for the expected arguments
Expand Down Expand Up @@ -1111,7 +1111,7 @@ console.log(values, positionals);
// Prints: [Object: null prototype] { foo: true, bar: 'b' } []
```

### `parseArgs`' `tokens`
### `parseArgs` `tokens`

Detailed parse information is available for adding custom behaviours by
Comment thread
shadowspawn marked this conversation as resolved.
specifying `tokens: true` in the configuration.
Expand Down