From b7c882041b602fbc7d5b4ff7cbfe2313260fb5a1 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 3 Feb 2016 21:05:32 -0500 Subject: Remove CLI repo validation This prevents auto-creation from happening, which I like. --- dotfiles/cli.py | 5 ++--- 1 file 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') -- cgit v1.2.3