-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Make isMultiple
non-greedy
#162
Conversation
I.e don't consume more than one argument
I think we should explicitly document this behavior. |
Bump :) |
Yeah, sorry. I started looking into it, but then my son woke up 😅 I'll get to it in the coming days. |
Prettier setting to adhere to current formatting, anyone?
@sindresorhus Alright. All yours. |
LGTM 👍 |
Came to think of: do we want the tests to be as explicit? We have a test for space-separation. Should I add a test for a comma-separated value as well? I mean, to "document" the (non-)behavior. |
Went ahead and added it. Feel free to skip/revert. |
Thanks for this 👍🏻 |
Includes fix for sindresorhus/meow#162
I.e don't consume more than one argument.
The default behavior of
yargs-parser
is to greedily consume array flag arguments.I also realized it doesn't support comma-separated values. Not sure if we want that or not, but I'll make a separate PR and let you be the judge.
Fixes #160