Skip to content

Commit 743ae86

Browse files
committed
fix: Fixes zxbasm options
1 parent 4858f70 commit 743ae86

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/zxbasm/zxbasm.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,8 @@ def main(args=None):
169169
if OPTIONS.stderr_filename:
170170
OPTIONS.stderr = open(OPTIONS.stderr_filename, "wt")
171171

172-
if int(options.tzx) + int(options.tap) > 1:
173-
o_parser.error("Options --tap, --tzx and --asm are mutually exclusive")
174-
return 3
175-
176-
if OPTIONS.use_basic_loader and not options.tzx and not options.tap:
177-
o_parser.error("Option --BASIC and --autorun requires --tzx or tap format")
172+
if OPTIONS.use_basic_loader and OPTIONS.output_file_type not in (FileType.TZX, FileType.TAP):
173+
o_parser.error("Option --BASIC and --autorun requires tzx or tap format")
178174
return 4
179175

180176
# Configure the preprocessor to use the asm-preprocessor-lexer

0 commit comments

Comments
 (0)