-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unnecessary arrays in result values
?
#19
Comments
(Happy to fix this, checking my expected behaviour first!) |
I’d expect a value of |
values
values
?
Historical digging. The current implementation was written to match the README description: https://github.com/pkgjs/parseargs#-examples-w-output As mentioned in: #9 (comment) The README text was added by @darcyclarke in: 3f057c1 |
For comparison, the "Initial Proposal" has this example. Combined
|
I think my expectation would be it's only an array if you set |
We should absolutely never have the type of something vary based on whether there's 1 or 2+ items. |
Actual:
I expect a plain string for
foo
rather than an array, and no "value" at all forflag
.Expected:
The text was updated successfully, but these errors were encountered: