Add `-h` command-line option which shows `--help`

pull/357/head
nyanpasu64 2018-12-05 14:46:37 -08:00
rodzic 53b4f64a87
commit 78d4512fb9
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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)