From 700530cb8ebc6207ba91fe5b18203caecf8511a9 Mon Sep 17 00:00:00 2001 From: Tom Lau Date: Fri, 7 Feb 2025 11:55:40 +0800 Subject: [PATCH] fix: incorrect arg skip pattern for `--check_out_path=` --- changelog.md | 1 + script/cli/check.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index baa1210fc..4b334344c 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## Unreleased +* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument ## 3.13.6 `2025-2-6` diff --git a/script/cli/check.lua b/script/cli/check.lua index 7f38dfea4..d65c93580 100644 --- a/script/cli/check.lua +++ b/script/cli/check.lua @@ -21,7 +21,7 @@ local function buildArgs(exe, numThreads, threadId, format, quiet) args[#args + 1] = arg:gsub('%-%-%w*', '--check_worker') -- --check_out_path needs to be removed if we have more than one thread elseif arg:lower():match('%-%-check_out_path') and numThreads > 1 then - if not arg:match('%-%-%w*=') then + if not arg:match('%-%-[%w_]*=') then skipNext = true end else