From f7495608fd0dae40af1c41be0019a6c7a151c216 Mon Sep 17 00:00:00 2001 From: maurane Date: Mon, 28 Sep 2026 10:51:47 +0200 Subject: [PATCH] =?UTF-8?q?feat(cli):=20=E2=9C=A8=20add=20shorter=20option?= =?UTF-8?q?s=20in=20cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -o for --output-dir, -f for --input-files --- src/logwatcher/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logwatcher/cli.py b/src/logwatcher/cli.py index d765e18..90012f5 100644 --- a/src/logwatcher/cli.py +++ b/src/logwatcher/cli.py @@ -153,15 +153,15 @@ def from_files( output_dir: Annotated[ Path, typer.Option( - "--output-dir", help="Output directories where reports will be stored." + "--output-dir", "-o", help="Output directories where reports will be stored." ), ] = RESULT_PATH, input_files: Annotated[ - list[Path] | None, typer.Option("--input-files", help="Log files to scan.") + list[Path] | None, typer.Option("--input-files", "-f", help="Log files to scan.") ] = None, input_dir: Annotated[ Path | None, - typer.Option("--input-dir", help="Directories containing log files."), + typer.Option("--input-dir", "-d", help="Directories containing log files."), ] = None, ) -> None: """Convert log files into two reports, one of n2 related logs, one without any n2 related logs.