From 78d4512fb9705cfd6ac41d9732745e92289a807d Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Wed, 5 Dec 2018 14:46:37 -0800 Subject: [PATCH] Add `-h` command-line option which shows `--help` --- ovgenpy/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ovgenpy/cli.py b/ovgenpy/cli.py index f46da24..3346793 100644 --- a/ovgenpy/cli.py +++ b/ovgenpy/cli.py @@ -50,7 +50,9 @@ def get_path(audio_file: Union[None, str, Path], ext: str) -> Path: PROFILE_DUMP_NAME = 'cprofile' -@click.command() +CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) + +@click.command(context_settings=CONTEXT_SETTINGS) # Inputs @click.argument('files', nargs=-1) # Override default .yaml settings (only if YAML file not supplied)