diff --git a/docs/deployment.md b/docs/deployment.md index 65c6f0e9a..b65c4319e 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -119,7 +119,7 @@ Options: --version Display the uvicorn version and exit. --app-dir TEXT Look for APP in the specified directory, by adding this to the PYTHONPATH. Defaults to - the current working directory. [default: .] + the current working directory. --h11-max-incomplete-event-size INTEGER For h11, the maximum number of bytes to buffer of an incomplete event. diff --git a/docs/index.md b/docs/index.md index 6353a5866..2447f28e4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -186,7 +186,7 @@ Options: --version Display the uvicorn version and exit. --app-dir TEXT Look for APP in the specified directory, by adding this to the PYTHONPATH. Defaults to - the current working directory. [default: .] + the current working directory. --h11-max-incomplete-event-size INTEGER For h11, the maximum number of bytes to buffer of an incomplete event. diff --git a/uvicorn/main.py b/uvicorn/main.py index 3c59fa131..ced75d002 100644 --- a/uvicorn/main.py +++ b/uvicorn/main.py @@ -335,7 +335,7 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No ) @click.option( "--app-dir", - default=".", + default="", show_default=True, help="Look for APP in the specified directory, by adding this to the PYTHONPATH." " Defaults to the current working directory.",