From 743ae865babf61dade6ccfaa59aa85b025ce8546 Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Thu, 16 Apr 2026 23:54:04 +0200 Subject: [PATCH] fix: Fixes zxbasm options --- src/zxbasm/zxbasm.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/zxbasm/zxbasm.py b/src/zxbasm/zxbasm.py index c57396a1b..8ee1451c6 100755 --- a/src/zxbasm/zxbasm.py +++ b/src/zxbasm/zxbasm.py @@ -169,12 +169,8 @@ def main(args=None): if OPTIONS.stderr_filename: OPTIONS.stderr = open(OPTIONS.stderr_filename, "wt") - if int(options.tzx) + int(options.tap) > 1: - o_parser.error("Options --tap, --tzx and --asm are mutually exclusive") - return 3 - - if OPTIONS.use_basic_loader and not options.tzx and not options.tap: - o_parser.error("Option --BASIC and --autorun requires --tzx or tap format") + if OPTIONS.use_basic_loader and OPTIONS.output_file_type not in (FileType.TZX, FileType.TAP): + o_parser.error("Option --BASIC and --autorun requires tzx or tap format") return 4 # Configure the preprocessor to use the asm-preprocessor-lexer