The value to assign to the option if it does not appear in the arguments to be parsed. The value must match the type specified by the type property. If multiple is true, it must be an array. No default value is applied when the option does appear in the arguments to be parsed, even if the provided value is falsy.
property default | Node.js util module | Bun BuildDocsReferenceGuidesBlogDiscord/node:util/ParseArgsOptionDescriptor/defaultPdefault BuildDocsReferenceGuidesBlogDiscord /node:util/ParseArgsOptionDescriptor/defaultPdefault util.ParseArgsOptionDescriptor.defaultdefault?: string | boolean | string[] | boolean[]
Search the reference...
/
property
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →property default | Node.js util module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- The value to assign to
the option if it does not appear in the arguments to be parsed. The value
must match the type specified by the `type` property. If `multiple` is
`true`, it must be an array. No default value is applied when the option
does appear in the arguments to be parsed, even if the provided value
is falsy.