From cfd79f86fbab500fa858978fe6979b607ffca549 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 4 Jan 2016 05:47:22 -0500 Subject: Enable use of '-h' for help command --- dotfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles.py b/dotfiles.py index 9a7fe9a..19ae12f 100644 --- a/dotfiles.py +++ b/dotfiles.py @@ -124,7 +124,7 @@ class Dotfile(object): pass_repo = click.make_pass_decorator(Repository) -@click.group() +@click.group(context_settings=dict(help_option_names=['-h', '--help'])) @click.option('--home-directory', type=click.Path(), default=DEFAULT_HOME, show_default=True) @click.option('--repository', type=click.Path(), default=DEFAULT_REPO, -- cgit v1.2.3