-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
CLI: Clean up handling of unknown subcommands #12799
Conversation
LGTM, did you test it? |
Yup, works fine 👍 |
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.
This PR aims at introducing a refactor, and hence the behavior remains the same. |
d3a4ee3
to
880d7ee
Compare
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.
Aha gotcha. Thanks for the clarification @jamesgeorge007
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.
👍
Issue:
What I did
Use
commander.js
API to handle unknown subcommands.How to test
This PR aims at leveraging the arg parser lib to handle unknown args.