Skip to content

Commit d91e9cc

Browse files
authored
Merge pull request #550 from boriel/bugfix/sinclar_option_bug
Bugfix/sinclar option bug
2 parents dad7bb3 + b5c5d67 commit d91e9cc

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/zxbc/args_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def parse_options(args: List[str] = None):
103103
if OPTIONS.sinclair:
104104
OPTIONS.array_base = 1
105105
OPTIONS.string_base = 1
106-
OPTIONS.strictBool = True
106+
OPTIONS.strict_bool = True
107107
OPTIONS.case_insensitive = True
108108

109109
OPTIONS.case_insensitive = options.ignore_case

tests/functional/test_cmdline.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ define_val.bas:4: error: "MACRO should be VALUE"
4141
extra_chars.bas:3: error: illegal character '`'
4242
extra_chars.bas:4: error: illegal character '#'
4343

44+
>>> process_file('61.bas', ['-q', '-S', '-O --sinclair', '-O --asm', '-O --expect-warnings 999'])
45+

0 commit comments

Comments
 (0)