feat(cli): ✨ add shorter options in cli

-o for --output-dir, -f for --input-files
This commit is contained in:
2026-09-28 10:51:47 +02:00
parent e50797bba6
commit f7495608fd
+3 -3
View File
@@ -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.