Allow -h for help

This commit is contained in:
Gabriel Augendre 2019-12-27 23:25:16 +01:00
parent c69638f714
commit 2f0aa92e7a
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -18,8 +18,10 @@ CONFIG_DIR = click.get_app_dir("cleantoots")
CONFIG_FILE = config_file("config.ini") CONFIG_FILE = config_file("config.ini")
EDITOR = os.getenv("EDITOR", "vim") EDITOR = os.getenv("EDITOR", "vim")
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
@click.group()
@click.group(context_settings=CONTEXT_SETTINGS)
@click.pass_context @click.pass_context
def cli(ctx): def cli(ctx):
""" """