aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-02-03 21:05:32 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-02-03 21:05:32 -0500
commitb7c882041b602fbc7d5b4ff7cbfe2313260fb5a1 (patch)
tree5b36cf0583370376fec6d55b91249e7b7961e2e5
parent066e99056bb8b17a4c55134b4d1a6692e38244a4 (diff)
downloaddotfiles-b7c882041b602fbc7d5b4ff7cbfe2313260fb5a1.tar.gz
dotfiles-b7c882041b602fbc7d5b4ff7cbfe2313260fb5a1.tar.bz2
dotfiles-b7c882041b602fbc7d5b4ff7cbfe2313260fb5a1.zip
Remove CLI repo validation
This prevents auto-creation from happening, which I like.
-rw-r--r--dotfiles/cli.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/dotfiles/cli.py b/dotfiles/cli.py
index 794dc27..31d6889 100644
--- a/dotfiles/cli.py
+++ b/dotfiles/cli.py
@@ -43,9 +43,8 @@ def perform(method, files, repo, debug):
@click.group(context_settings=CONTEXT_SETTINGS)
-@click.option('-r', '--repo',
- type=click.Path(exists=True, file_okay=False, dir_okay=True),
- default=[DEFAULT_REPO], show_default=True, multiple=True,
+@click.option('-r', '--repo', type=click.Path(), multiple=True,
+ default=[DEFAULT_REPO], show_default=True,
help='A repository path.')
@click.option('-d', '--dot', is_flag=True, help='Preserve the leading dot.')
@click.version_option(None, '-v', '--version')