Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e675c3a

Browse filesBrowse files
bakkotmarco-ippolito
authored andcommitted
doc: expand description of parseArg's default
PR-URL: #54431 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com>
1 parent 48f9ca0 commit e675c3a
Copy full SHA for e675c3a

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/util.md‎

Copy file name to clipboardExpand all lines: doc/api/util.md
+4-3Lines changed: 4 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1422,9 +1422,10 @@ changes:
14221422
times. If `true`, all values will be collected in an array. If
14231423
`false`, values for the option are last-wins. **Default:** `false`.
14241424
* `short` {string} A single character alias for the option.
1425-
* `default` {string | boolean | string\[] | boolean\[]} The default option
1426-
value when it is not set by args. It must be of the same type as the
1427-
`type` property. When `multiple` is `true`, it must be an array.
1425+
* `default` {string | boolean | string\[] | boolean\[]} The default value to
1426+
be used if (and only if) the option does not appear in the arguments to be
1427+
parsed. It must be of the same type as the `type` property. When `multiple`
1428+
is `true`, it must be an array.
14281429
* `strict` {boolean} Should an error be thrown when unknown arguments
14291430
are encountered, or when arguments are passed that do not match the
14301431
`type` configured in `options`.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.