Skip to content

Commit 31f3785

Browse files
committed
fix(cli): 🐛 use Path type for --output-file option
Set `path_type=Path` on the `--output-file` click option so the value is parsed as a `pathlib.Path` instead of a plain string, ensuring consistent path handling.
1 parent 871cf9d commit 31f3785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rocrate_validator/cli/commands/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def validate_uri(ctx, param, value):
199199
@click.option(
200200
"-o",
201201
"--output-file",
202-
type=click.Path(),
202+
type=click.Path(path_type=Path),
203203
default=None,
204204
show_default=True,
205205
help="Path to the output file for the validation report",

0 commit comments

Comments
 (0)