From c455a44aee0aca0d233cb18e5d04a084ec5ab833 Mon Sep 17 00:00:00 2001 From: alexanderschmitz Date: Fri, 21 Jul 2023 17:00:23 +0200 Subject: [PATCH] feature: shortened help parameter (-h) --- questionpy_sdk/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questionpy_sdk/__main__.py b/questionpy_sdk/__main__.py index ea203eb..a88d568 100644 --- a/questionpy_sdk/__main__.py +++ b/questionpy_sdk/__main__.py @@ -14,7 +14,7 @@ from questionpy_sdk.commands.repo import repo -@click.group() +@click.group(context_settings={"help_option_names": ['-h', '--help']}) @click.option("-v", "--verbose", is_flag=True, show_default=True, default=False, help="Use log level DEBUG.") def cli(verbose: bool) -> None: logging.basicConfig(level=logging.DEBUG if verbose else logging.INFO, stream=sys.stderr)