-
Notifications
You must be signed in to change notification settings - Fork 889
Use commander instead of optimist for CLI arguments #2689
Conversation
I'd prefer using a battle-tested library instead of maintaining our own implementation. There are many alternatives out there: yargs, commander, argparse, ... |
Tried using 'commander'. |
why not yargs? |
Let's install
That's a pretty big install for something that only took me 40 lines of code. Now let's install
I know commander had a few bugs, but |
commander doesn't seem to be very active. The last commit was 3 months ago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commander seems fine; it's at least better than the deprecated optimist
overall these changes look good, but need to resolve some conflicts
package.json / yarn.lock conflicts |
PR checklist
Overview of change:
optimist
is deprecated. Added a simple options parser that should behave the same as before. (Test with./bin/tslint
.)