Open F3n67u opened 2 years ago
That is rather strange. Repro is pretty easy, exactly as described (given spec doesn't have to exist). Looks like something in our CLI is getting confused by --browser --spec
- we could probably throw a more useful error. Pull requests welcome, but I doubt the team will prioritize this.
We use the commander package and this is the default behavior. I believe we would have to write custom parsers for the options to handle this use-case.
I am going to give this one a try 👋
Current behavior
I made a mistake to pass an empty string to the
--browser
option ofcypress run
, but the error message says that I pass a wrong--spec
option, this is very confusing.Desired behavior
In this situation, cypress should say that the value of
--browser
options is not valid.sayTest code to reproduce
Cypress Version
10.3.0
Other