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.
Node util.ParseArgsOptionDescriptor TypeScript interface | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/node:util/ParseArgsOptionDescriptorPdefaultPmultiplePshortPtype BuildDocsReferenceGuidesBlogDiscord /node:util/ParseArgsOptionDescriptorPdefaultPmultiplePshortPtype util.ParseArgsOptionDescriptorinterface ParseArgsOptionDescriptordefault?: string | boolean | string[] | boolean[] multiple?: boolean short?: string type: ParseArgsOptionsType
Search the reference...
/
interface
Whether this option can be provided multiple times. If true, all values will be collected in an array. If false, values for the option are last-wins.
A single character alias for the option.
Type of argument.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Node util.ParseArgsOptionDescriptor TypeScript interface | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for interface node:util.ParseArgsOptionDescriptor | Bun