From b920776e3cf7bc773ddf8edfd3563e8a4af09769 Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Sat, 13 Sep 2025 22:39:13 -0400 Subject: [PATCH] Update main.py --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 4c26d77..c81d621 100644 --- a/main.py +++ b/main.py @@ -102,6 +102,10 @@ print(f"\nSelected {len(selected)} file(s):") for s in selected: print(" ", s) +# enforce minimum 2 files if --all was used +if args.all and len(selected) < 2: + print("⚠️ --all requires at least 2 .m4b files to merge.") + sys.exit(1) # final output name if args.output: final_name = args.output.strip()