I copied the minimal example from the docs (https://docs.litestar.dev/2/index.html#minimal-example) into a file called example_app.py and tried to run it using litestar run example_app:app. However, I get the following error:
Usage: litestar run [OPTIONS]
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ Got unexpected extra argument (example_app:app) │
╰──────────────────────────────────────────────────────────────────────────────╯
The CLI help says:
$ litestar run --help
Usage: litestar run [OPTIONS]
Run a Litestar app; requires ``uvicorn``.
The app can be either passed as a module path in the form of <module
name>.<submodule>:<app instance or factory>, set as an environment variable
LITESTAR_APP with the same format or automatically discovered from one of
these canonical paths: app.py, asgi.py, application.py or app/__init__.py.
It does indeed work if I set LITESTAR_APP=example_app:app, but I'd prefer not to have to set the environment variable all the time. Am I missing something obvious or is this a bug in the CLI? Thanks!