mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix non-flags parameters with the same name "flags" being treated as TL flags
This commit is contained in:
parent
82b029c3bf
commit
d6c80ff0f9
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ def sort_args(args):
|
||||||
args.remove(i)
|
args.remove(i)
|
||||||
|
|
||||||
for i in args[:]:
|
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)
|
args.remove(i)
|
||||||
|
|
||||||
return args + flags
|
return args + flags
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue