工程(工程小件批·件1): run_all.gd --only 逗号形态解析修复——解析段补 split(",") 拆分对齐头注契约<词[,词…]>,此前整串当一个词对套件路径子串匹配,闸脚本关联档空格转逗号拼接单旗标传参多词必零命中 quit(2)(6caf56b5 起缺陷,迭代42施工曾以逐词重复传参绕过);孤立验证=逗号拼接四词形态实跑四套件全绿 filtered

This commit is contained in:
DKChan committed 2026-10-30 07:54:17 +08:00
1 parent 14054d9dfb
commit d32ff34256
1 file changed
+4 -3
+4 -3
View File
@@ -66,9 +66,10 @@ func _init() -> void:
for a in OS.get_cmdline_user_args(): for a in OS.get_cmdline_user_args():
if a.begins_with("--only="): if a.begins_with("--only="):
has_only = true has_only = true
var term := a.trim_prefix("--only=").strip_edges() for part in a.trim_prefix("--only=").split(","):
if term != "": var term := part.strip_edges()
only_terms.append(term) if term != "":
only_terms.append(term)
elif a == "--only-source=gates": elif a == "--only-source=gates":
only_from_gates = true only_from_gates = true
elif a.begins_with("--shard="): elif a.begins_with("--shard="):