Skip to content

Commit 5f662c0

Browse files
authored
Fix --fixed-length Flag Doesn't Work Alone (#79)
Fix error when using --fixed-length
1 parent 5eea346 commit 5f662c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labelle/cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def default(
449449
"Cannot specify both barcode with text and regular barcode"
450450
)
451451

452-
if fixed_length is not None and (min_length != 0 or max_length is not None):
452+
if fixed_length is not None and (min_length is not None or max_length is not None):
453453
raise typer.BadParameter(
454454
"Cannot specify min/max and fixed length at the same time"
455455
)

0 commit comments

Comments
 (0)