Skip to content

Commit 516d074

Browse files
bakkotaduh95
authored andcommitted
doc: expand description of parseArg's default
PR-URL: #54431 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jordan Harband <[email protected]>
1 parent b6c3869 commit 516d074

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/util.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,10 @@ changes:
15331533
times. If `true`, all values will be collected in an array. If
15341534
`false`, values for the option are last-wins. **Default:** `false`.
15351535
* `short` {string} A single character alias for the option.
1536-
* `default` {string | boolean | string\[] | boolean\[]} The default option
1537-
value when it is not set by args. It must be of the same type as the
1538-
`type` property. When `multiple` is `true`, it must be an array.
1536+
* `default` {string | boolean | string\[] | boolean\[]} The default value to
1537+
be used if (and only if) the option does not appear in the arguments to be
1538+
parsed. It must be of the same type as the `type` property. When `multiple`
1539+
is `true`, it must be an array.
15391540
* `strict` {boolean} Should an error be thrown when unknown arguments
15401541
are encountered, or when arguments are passed that do not match the
15411542
`type` configured in `options`.

0 commit comments

Comments
 (0)