GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: expand description of `parseArg`'s `default` · nodejs/node@38ce249

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • util.md
Expand file treeCollapse file tree
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
@@ -1535,9 +1535,10 @@ changes:
15351535
times. If `true`, all values will be collected in an array. If
15361536
`false`, values for the option are last-wins. **Default:** `false`.
15371537
* `short` {string} A single character alias for the option.
1538-
* `default` {string | boolean | string\[] | boolean\[]} The default option
1539-
value when it is not set by args. It must be of the same type as the
1540-
`type` property. When `multiple` is `true`, it must be an array.
1538+
* `default` {string | boolean | string\[] | boolean\[]} The default value to
1539+
be used if (and only if) the option does not appear in the arguments to be
1540+
parsed. It must be of the same type as the `type` property. When `multiple`
1541+
is `true`, it must be an array.
15411542
* `strict` {boolean} Should an error be thrown when unknown arguments
15421543
are encountered, or when arguments are passed that do not match the
15431544
`type` configured in `options`.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.