Closed merriam closed 7 years ago
It seems to me that a solution for this has already been rejected once: https://github.com/yarnpkg/yarn/pull/716
Yes. The solution of trying to divine the users intention and act on that guess was rejected.
The solution of printing a sensible error message should still be considered.
Do you want to request a feature or report a bug? bug
What is the current behavior? I get the incorrect and cryptic error message for passing a command line parameter before the command. I should get an error such as
error: flag (-D) passed before first command. Run as yarn add -D ...
There is no need to guess and correct the command, which seems to be a flagellated deceased equine (See #635, #777, #716, #693, #1002, etc.). There is a need to put a correct error message. Currently, the error message includes
Run "yarn add add ...."
which is clearly incorrect.If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Please mention your node.js, yarn and operating system version. yarn v0.21.3, node v7.7.1, MacOS Sierra v10.12.3