From e3ebfa302efb9234a86e1f25efdc8acc0e21f01d Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 15 Apr 2016 21:09:30 -0400 Subject: Inline help strings in cli decorators --- dotfiles/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/cli.py b/dotfiles/cli.py index 696dbd5..9374bc0 100644 --- a/dotfiles/cli.py +++ b/dotfiles/cli.py @@ -114,12 +114,12 @@ def perform(method, files, repo, debug): pass_repos = click.make_pass_decorator(Repositories) -repo_help = 'A repository path.' -dot_help = 'Preserve the leading dot.' + @click.group(context_settings=CONTEXT_SETTINGS) -@click.option('-r', '--repo', type=click.Path(), multiple=True, help=repo_help) -@click.option('-d', '--dot', is_flag=True, help=dot_help) +@click.option('-r', '--repo', type=click.Path(), multiple=True, + help='A repository path.') +@click.option('-d', '--dot', is_flag=True, help='Preserve the leading dot.') @click.version_option(None, '-v', '--version') @click.pass_context def cli(ctx, repo, dot): -- cgit v1.2.3