feat(cli): ✨ add shorter options in cli
-o for --output-dir, -f for --input-files
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user