Fix error when using not supplying a value (default) to --size

This commit is contained in:
KnugiHK
2025-06-19 21:41:03 +08:00
parent 5aa12482e0
commit 9d3e65bd92

View File

@@ -134,7 +134,7 @@ def setup_argument_parser() -> ArgumentParser:
help="Do not output html files"
)
output_group.add_argument(
"--size", "--output-size", "--split", dest="size", nargs='?', const=0, default=None,
"--size", "--output-size", "--split", dest="size", nargs='?', const="0", default=None,
help="Maximum (rough) size of a single output file in bytes, 0 for auto"
)