-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Switch from yargs to commander to remove 16 dependencies #418
Comments
We used to be on commander prior to v4.0.0: https://github.com/open-cli-tools/concurrently/blob/3.6.1/src/main.js I briefly looked at its API these days, and it hasn't improved much since. I wouldn't mind seeing a PR that ditches yargs for some other CLI library, but it would need, at least, to
Anyways, we should discuss first which library that'd be, as I'd like to reduce the chances of not merging the many hours of work one can easily pour into such a PR. |
Saw meow. Not sure if it's better or worse the commander. it has typescript types. |
I stumbled across this issue and had a light look at compatibility of Yargs and Commander in this project. Two Yargs features that are being used that that would require extra work to match behaviour in Commander are:
(Disclaimer: I help maintain Commander and Yargs.) |
So there was a discussion at work about using a CLI builder different from yargs because its API is a bit annoying, and now it's getting to me 😄 I looked into meow, but... it's ES modules only. I'm not ready to ditch CJS users yet. So I found that yet another option to consider is to just use pure NodeJS, with Something important to note is that |
Description: switching from yargs to commander would reduce dependencies. commander has 0, yargs has 16
Every downstream dependency adds work as all of them need updates and all of them may have vulnerabilities. Lowering dependencies is generally a win.
If there's nothing special about yargs, would it be ok to provide a PR to remove it and replace with commander?
note: commander is more popular than yargs. Not that popularity has anything to do with quality, only that lots of people are relying on it.
The text was updated successfully, but these errors were encountered: