Skip to content

Commit e891392

Browse files
authored
✨ Allow to use -h for help (#191)
1 parent 0a81473 commit e891392

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fastapi_cli/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
from .logging import setup_logging
1515
from .utils.cli import get_rich_toolkit, get_uvicorn_log_config
1616

17-
app = typer.Typer(rich_markup_mode="rich")
17+
app = typer.Typer(
18+
rich_markup_mode="rich", context_settings={"help_option_names": ["-h", "--help"]}
19+
)
1820

1921
logger = logging.getLogger(__name__)
2022

0 commit comments

Comments
 (0)