Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add default option parameter #142

Merged
merged 12 commits into from
Oct 8, 2022
Prev Previous commit
Next Next commit
docs: fix option type
Eomm committed Oct 7, 2022

Verified

This commit was signed with the committer’s verified signature.
Eomm Manuel Spigolon
commit d5759a0f87305851d498777aeea13bb1a59d3a90
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ changes:
times. If `true`, all values will be collected in an array. If
`false`, values for the option are last-wins. **Default:** `false`.
* `short` {string} A single character alias for the option.
* `defaultValue` {string | boolean} The default option value when it is not set by args.
* `defaultValue` {string | boolean | string[] | boolean[]} The default option value when it is not set by args.
* `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`.