From ff9b6c8386b38886c78828a2820bcd7bccc0883d Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Thu, 7 Aug 2025 16:26:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Allow=20to=20use=20`-h`=20for=20hel?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fastapi_cli/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fastapi_cli/cli.py b/src/fastapi_cli/cli.py index 7764721..78e3bd9 100644 --- a/src/fastapi_cli/cli.py +++ b/src/fastapi_cli/cli.py @@ -14,7 +14,9 @@ from .logging import setup_logging from .utils.cli import get_rich_toolkit, get_uvicorn_log_config -app = typer.Typer(rich_markup_mode="rich") +app = typer.Typer( + rich_markup_mode="rich", context_settings={"help_option_names": ["-h", "--help"]} +) logger = logging.getLogger(__name__)