mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 06:51:39 +00:00
Fixed issue on command line args validation
This commit is contained in:
@@ -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.")
|
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):
|
elif args.import_json and not os.path.isfile(args.json):
|
||||||
parser.error("JSON file not found.")
|
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.")
|
parser.error("You must specify both --source-dir and --target-dir for incremental merge.")
|
||||||
if args.android and args.business:
|
if args.android and args.business:
|
||||||
parser.error("WhatsApp Business is only available on iOS for now.")
|
parser.error("WhatsApp Business is only available on iOS for now.")
|
||||||
|
|||||||
Reference in New Issue
Block a user