aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-04-15 21:09:30 -0400
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-04-15 21:09:30 -0400
commite3ebfa302efb9234a86e1f25efdc8acc0e21f01d (patch)
treeeb3a99bf15bb32a5d81918700b1f3f1e9d73232a
parentd5b2ca1ca511c0cae581cc4a36ab40b09c7563b8 (diff)
downloaddotfiles-e3ebfa302efb9234a86e1f25efdc8acc0e21f01d.tar.gz
dotfiles-e3ebfa302efb9234a86e1f25efdc8acc0e21f01d.tar.bz2
dotfiles-e3ebfa302efb9234a86e1f25efdc8acc0e21f01d.zip
Inline help strings in cli decorators
-rw-r--r--dotfiles/cli.py8
1 files 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):