-
Notifications
You must be signed in to change notification settings - Fork 673
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
Add deprecation warning when trying to run commands without explicit entrypoint #401
Comments
Agreed, we should have explicit errors for when people do common mistakes instead of the generic yargs "expect x arguments, got y" message. |
One can still run
I don't think we need anything else here, right? |
For |
If we support something for publish, it should work for dev too. Similar to #396 |
In wrangler1, you could run
wrangler dev
,wrangler publish
, etc. without explicitly specifying the entrypoint in the command. Many users will attempt to run these old commands and get confused why they now see the help page. Instead, there should be a deprecation warning that tells them what to do.The text was updated successfully, but these errors were encountered: