Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: expand description of parseArg's default
  • Loading branch information
bakkot authored Aug 18, 2024
commit 1f8678e25f9a611e32acde87ab8dfebc72cea4ad
6 changes: 4 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1425,8 +1425,10 @@ changes:
`false`, values for the option are last-wins. **Default:** `false`.
* `short` {string} A single character alias for the option.
* `default` {string | boolean | string\[] | boolean\[]} The default option
value when it is not set by args. It must be of the same type as the
`type` property. When `multiple` is `true`, it must be an array.
value when this argument is not passed. It must be of the same type as the
`type` property. When `multiple` is `true`, it must be an array. For
`string` arguments, if the argument is passed it must still be followed by
Comment thread
bakkot marked this conversation as resolved.
Outdated
a value.
* `strict` {boolean} Should an error be thrown when unknown arguments
are encountered, or when arguments are passed that do not match the
`type` configured in `options`.
Expand Down