Allow -h for help
This commit is contained in:
parent
c69638f714
commit
2f0aa92e7a
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue