Skip to content

Commit

Permalink
Remove unneeded exists=True for -a/--auth flag. (#59)
Browse files Browse the repository at this point in the history
The file does not need to exist when using an environment variable.
  • Loading branch information
frosencrantz authored May 19, 2021
1 parent ba8cf3e commit 70dffca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def starred(db_path, username, auth, load):
@click.option(
"-a",
"--auth",
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True, exists=True),
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True),
default="auth.json",
help="Path to auth.json token file",
)
Expand Down Expand Up @@ -585,7 +585,7 @@ def get(url, auth, paginate, nl, accept):
@click.option(
"-a",
"--auth",
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True, exists=True),
type=click.Path(file_okay=True, dir_okay=False, allow_dash=True),
default="auth.json",
help="Path to auth.json token file",
)
Expand Down

0 comments on commit 70dffca

Please sign in to comment.