Skip to content

Commit 95ec594

Browse files
committed
docs(commands): name the reserved word the params spelling avoids
1 parent 61f4997 commit 95ec594

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎defining-commands.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ The run context
356356
(including any subcommand segments) has been consumed.
357357
- `ctx.params` — the same arguments keyed by the names the `params` specs
358358
declare, `{}` when there are none. It is spelled `params` because
359-
`params` is a reserved binding name in strict mode, so a destructuring
359+
`arguments` is a reserved binding name in strict mode, so a destructuring
360360
`const { args, arguments } = ctx` would not even parse.
361361
- `ctx.options` — the current value of each declared option, read at the moment
362362
the command executes.

0 commit comments

Comments
 (0)