Open codemile opened 2 years ago
That's odd. It should print the following message:
~/workspace/random-dir blitz
› Error: You are not inside a Blitz project, so this command won't work.
› You can create a new app with blitz new myapp or see help with blitz help
We'll investigate why it throws an error instead.
I get the same error when running blitz --help outside a project folder. blitz -h does work though!?
What is the problem?
Blitz should be more friendly when run outside a blitz project without arguments.
When running the CLI outside a blitz project an unhandled error is thrown internally. Instead the CLI should provide the user with helpful feedback. Like a list of command arguments or version information. Instead it just seems to crash.
The expected behavior would be that it yields the same output as running
blitz
inside a project directory, but instead reports in a friendly way that it's not a blitz project. You should still see the version and available commands.Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response