From 642d03fc763c483811ab140639bbcaf5cc40e0de Mon Sep 17 00:00:00 2001 From: MountainGod2 Date: Sat, 4 Jan 2025 17:01:35 -0700 Subject: [PATCH] fix(cli): use constant for API timeout in CLI options --- src/chaturbate_poller/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chaturbate_poller/cli.py b/src/chaturbate_poller/cli.py index de623cb..4598666 100644 --- a/src/chaturbate_poller/cli.py +++ b/src/chaturbate_poller/cli.py @@ -8,6 +8,7 @@ from chaturbate_poller import __version__ from chaturbate_poller.config_manager import ConfigManager +from chaturbate_poller.constants import API_TIMEOUT from chaturbate_poller.main import main console = Console() @@ -36,7 +37,7 @@ def cli() -> None: @click.option( "--timeout", "-t", - default=10, + default=API_TIMEOUT, show_default=True, help="Timeout for API requests, in seconds.", )