From d6c80ff0f97992c7a2473d3a80e2518130322770 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:52:59 +0200 Subject: [PATCH] Fix non-flags parameters with the same name "flags" being treated as TL flags --- compiler/api/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index adc6cfff..a6514994 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -132,7 +132,7 @@ def sort_args(args): args.remove(i) for i in args[:]: - if re.match(r"flags\d?", i[0]): + if re.match(r"flags\d?", i[0]) and i[1] == "#": args.remove(i) return args + flags