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

Add support for variadic options #1250

Merged
merged 13 commits into from
Jun 1, 2020
Prev Previous commit
Fix typo
shadowspawn committed May 31, 2020
commit 970420010b4043f7b56728be8c18475bfda77602
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -284,7 +284,7 @@ error: required option '-c, --cheese <type>' not specified
You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you
can then specify multiple option arguments, and the parsed option value will be an array. The extra arguments
are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value
in specified in the same argument as the option then no further values are read.
is specified in the same argument as the option then no further values are read.

Example file: [options-variadic.js](./examples/options-variadic.js)