diff options
| -rw-r--r-- | xmake/core/base/option.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua index feec19a11..60824bd1d 100644 --- a/xmake/core/base/option.lua +++ b/xmake/core/base/option.lua @@ -433,14 +433,14 @@ function option.find(argv, name, shortname) if nextvalue then return arg end -- --name=value? - if name and arg:startswith("--" .. name) then + if name and arg:startswith("--" .. name .. "=") then -- get value local i = arg:find("=", 1, true) if i then return arg:sub(i + 1) end -- -shortname value? - elseif shortname and arg:startswith("-" .. shortname) then + elseif shortname and arg == ("-" .. shortname) then -- get value nextvalue = true |
