-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore(deps): update to yargs@15.x.x #4196
Conversation
@bcoe thank you for this PR. I will do some testing, meanwhile quite a few things have changed in yargs-parser. And actually we have no need to hurry with these dependency updates.
We are setting |
I'm somewhat convinced that I'd like to drop the my-app --reporter html --reporter text ☝️to me this seems more in line with how I would expect to pass arrays to most applications, whereas: my-app --reporter html text ☝️ is too clever, and doesn't leave a good option for folks who simply want to be able to have guarantees that:
|
This statement seems to be incorrect? |
I've made more changes to yargs-parser, such that this statement should be correct see, and #4196 With the update to yargs made here, the behavior when |
Thank you. I did some testing:
eg.
So your last version works well for Mocha, but I'm not yet convinced that removing |
@juergba I'm coming around to your point of view, given we use I also like the addition of the |
Ok. Btw it's confusing for yargs => |
@bcoe can you pls resolve conflicts? wish the git npm lockfile merge provider was available on GH... |
also, I'm hoping there's a newer release (not a beta)? |
👋 this is a bit stale, yargs@15.x is out of beta and should address this issue now 👌 |
Description of the Change
Updates to mocha to latest version of yargs, a couple tweaks were necessary:
retries
is always a number now, rather than sometimes being astring
).array
type, such that in some cases it didn't consume multiple positional arguments -- I've added a config settinggreedy-arrays
which makes this behavior explicit (the only way to get arrays is--foo --foo --foo
, i.e., providing the option multiple times).Alternate Designs
N/A
Why should this be in core?
Benefits
Gets you up-to-date with yargs.
Possible Drawbacks
Applicable issues
N/A