-
-
Notifications
You must be signed in to change notification settings - Fork 620
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]: show help when invalid flag is supplied #1051
Conversation
debugging |
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.
I think we need to chill this until a fix for #1050 (fixing dupe args) is landed, because it will most likely impact this PR.
Sounds good even! |
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.
Okay this could be resumed now, UNKNOWN_VALUE
L41 in bootstrap needs modification
Will get back on this in a bit. 👍 |
We already have an unknown flag log when the flag is supplied, are there any other requirements/enhancements that we can do to it? @evenstensberg @ematipico |
Hi @anshumanv sorry to coming back to you so late, I completely missed this PR! About the message provided, could you print |
Hey Emanuale,
Def sounds better to be, will rebase and change it in a while 👍 |
handle invalid flags and show help in case invalid flag is supplied ISSUES CLOSED: webpack#1046
cleanup custom logic to determine invalid flags ISSUES CLOSED: webpack#1046
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
Thank you! |
Fixes #1046
What kind of change does this PR introduce?
intercept flag parsing and if any invalid flag is present, print a neat err.
Did you add tests for your changes?
Will add
If relevant, did you update the documentation?
NA
Summary
Does this PR introduce a breaking change?
No
Other information