Skip to content

Commit

Permalink
fix(daemon): added possibility to use env var WAIT_TIME
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Dec 24, 2022
1 parent 855211e commit 42ae341
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wallabag2readwise/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def daemon(
wallabag_client_id: str = typer.Option(..., envvar='WALLABAG_CLIENT_ID'),
wallabag_client_secret: str = typer.Option(..., envvar='WALLABAG_CLIENT_SECRET'),
readwise_token: str = typer.Option(..., envvar='READWISE_TOKEN', prompt=True),
wait_time: int = typer.Option(60, help='time to wait between runs in minutes'),
wait_time: int = typer.Option(
60, help='time to wait between runs in minutes', envvar='WAIT_TIME'
),
):

console.print(f'> Starting daemon with {wait_time} minutes wait time')
Expand Down

0 comments on commit 42ae341

Please sign in to comment.