Fix non-flags parameters with the same name "flags" being treated as TL flags

This commit is contained in:
Dan 2022-04-11 14:52:59 +02:00
parent 82b029c3bf
commit d6c80ff0f9

View File

@ -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