Skip to content

Commit 70dffca

Browse files
authored
Remove unneeded exists=True for -a/--auth flag. (#59)
The file does not need to exist when using an environment variable.
1 parent ba8cf3e commit 70dffca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github_to_sqlite/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def starred(db_path, username, auth, load):
192192
@click.option(
193193
"-a",
194194
"--auth",
195-
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True, exists=True),
195+
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True),
196196
default="auth.json",
197197
help="Path to auth.json token file",
198198
)
@@ -585,7 +585,7 @@ def get(url, auth, paginate, nl, accept):
585585
@click.option(
586586
"-a",
587587
"--auth",
588-
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True, exists=True),
588+
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True),
589589
default="auth.json",
590590
help="Path to auth.json token file",
591591
)

0 commit comments

Comments
 (0)