From 9d3e65bd922f998b251c143ad662e61d80d8fe72 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Thu, 19 Jun 2025 21:41:03 +0800 Subject: [PATCH] Fix error when using not supplying a value (default) to --size --- Whatsapp_Chat_Exporter/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/__main__.py b/Whatsapp_Chat_Exporter/__main__.py index f561bcb..54a90a0 100644 --- a/Whatsapp_Chat_Exporter/__main__.py +++ b/Whatsapp_Chat_Exporter/__main__.py @@ -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" )