-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Show CLI help when user passed unknown option #837
Comments
Is this issue about DO NOT FAIL IF PASSED UNKNOWN OPTION? I think CLI shouldn't fail in such cases. What about you? |
No, this issue is just that it is not enough to say "wrong option" and exit with error code 1, but the app needs to show valid options and then exit with error code 1. Exiting with error is good - otherwise the user will never know they are doing something wrong. |
Here is the fixed output
|
* cli: if user passed unknown option, show help and exit, close #837 * cli: test unknown option output * linting
Released in |
Feature
All versions of Cypress
When a user passes unknown CLI option we just die.
First, the quotes are wrong around
--foo
, second we should display help message right away to show the right options for that command. Simple to do by replacingcommander
methodThe text was updated successfully, but these errors were encountered: