From f460f764415ed113265198c8ba8ea87c81d5b963 Mon Sep 17 00:00:00 2001 From: fschuh Date: Fri, 25 Apr 2025 19:10:22 -0400 Subject: [PATCH] Fixed issue on command line args validation --- 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 c8c2204..46b0734 100644 --- a/Whatsapp_Chat_Exporter/__main__.py +++ b/Whatsapp_Chat_Exporter/__main__.py @@ -277,7 +277,7 @@ def validate_args(parser: ArgumentParser, args) -> None: parser.error("You can only use --import with -j and without --no-html, -a, -i, -e.") elif args.import_json and not os.path.isfile(args.json): parser.error("JSON file not found.") - if args.incremental_merge and args.source_dir is None or args.target_dir is None: + if args.incremental_merge and (args.source_dir is None or args.target_dir is None): parser.error("You must specify both --source-dir and --target-dir for incremental merge.") if args.android and args.business: parser.error("WhatsApp Business is only available on iOS for now.")