From 2f0aa92e7a7f0101f970ab6e7a4d5037bd60d39a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 27 Dec 2019 23:25:16 +0100 Subject: [PATCH] Allow -h for help --- cleantoots/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cleantoots/main.py b/cleantoots/main.py index 4f88829..9638033 100644 --- a/cleantoots/main.py +++ b/cleantoots/main.py @@ -18,8 +18,10 @@ CONFIG_DIR = click.get_app_dir("cleantoots") CONFIG_FILE = config_file("config.ini") EDITOR = os.getenv("EDITOR", "vim") +CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"]) -@click.group() + +@click.group(context_settings=CONTEXT_SETTINGS) @click.pass_context def cli(ctx): """