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[ output_dir: Annotated[
Path, Path,
typer.Option( 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, ] = RESULT_PATH,
input_files: Annotated[ 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, ] = None,
input_dir: Annotated[ input_dir: Annotated[
Path | None, Path | None,
typer.Option("--input-dir", help="Directories containing log files."), typer.Option("--input-dir", "-d", help="Directories containing log files."),
] = None, ] = None,
) -> None: ) -> None:
"""Convert log files into two reports, one of n2 related logs, one without any n2 related logs. """Convert log files into two reports, one of n2 related logs, one without any n2 related logs.