From abe36296c1be696a7c9b89f7c15e3087f211d522 Mon Sep 17 00:00:00 2001 From: Benexl Date: Sun, 27 Jul 2025 12:46:24 +0300 Subject: [PATCH] feat(cli): log the current command --- fastanime/cli/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fastanime/cli/cli.py b/fastanime/cli/cli.py index 6cd5f6a..0536a8e 100644 --- a/fastanime/cli/cli.py +++ b/fastanime/cli/cli.py @@ -1,3 +1,5 @@ +import logging +import sys from typing import TYPE_CHECKING import click @@ -26,6 +28,8 @@ if TYPE_CHECKING: rich_traceback_theme: str +logger = logging.getLogger(__name__) + commands = { "config": "config.config", "search": "search.search", @@ -74,6 +78,7 @@ def cli(ctx: click.Context, **options: "Unpack[Options]"): options["rich_traceback_theme"], ) + logger.info(f"Current Command: {' '.join(sys.argv)}") cli_overrides = {} param_lookup = {p.name: p for p in ctx.command.params}