You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Pylette/cmd.py
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,17 @@ def main(
37
37
out_filename: pathlib.Path|None=None,
38
38
display_colors: bool=False,
39
39
colorspace: ColorSpace=ColorSpace.rgb,
40
-
alpha_mask_threshold: int|None=typer.Option(None, min=0, max=255, help="Alpha threshold for transparent image masking (0-255). Pixels with alpha below this value are excluded."),
40
+
alpha_mask_threshold: int|None=typer.Option(
41
+
None,
42
+
min=0,
43
+
max=255,
44
+
help="Alpha threshold for transparent image masking (0-255). Pixels with alpha below this value are excluded.",
45
+
),
41
46
):
42
47
iffilenameisNoneandimage_urlisNone:
43
48
typer.echo(ctx.get_help())
44
49
raisetyper.Exit(code=0)
45
-
50
+
46
51
iffilenameisnotNoneandimage_urlisnotNone:
47
52
typer.echo("Please provide either a filename or an image-url, but not both.")
0 commit comments