diff options
Diffstat (limited to 'xmake/core/tool/tool.lua')
| -rw-r--r-- | xmake/core/tool/tool.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua index 2c8ef6ee0..0bbcd9e09 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -76,6 +76,9 @@ function tool._find(root, name) -- make the lower name name = name:lower() + -- remove arguments: -xxx or --xxx + name = (name:gsub("%s%-+%w+", " ")) + -- get all tool files local file_ok = nil local score_maxn = 0 |
