Skip to content
Snippets Groups Projects
Commit 35b092a2 authored by 最萌小汐's avatar 最萌小汐
Browse files

fix #345

parent 837b1398
No related branches found
No related tags found
No related merge requests found
# changelog
## 1.11.2
* `FIX` [#345](https://github.com/sumneko/lua-language-server/issues/345): not works with unexpect args
* `FIX` [#346](https://github.com/sumneko/lua-language-server/issues/346): dont modify the cache
## 1.11.1
......
......@@ -18,6 +18,9 @@ end
local function loadArgs()
for _, v in ipairs(arg) do
local key, value = v:match '^%-%-([%w_]+)%=(.+)'
if not key then
goto CONTINUE
end
if value == 'true' then
value = true
elseif value == 'false' then
......@@ -28,6 +31,7 @@ local function loadArgs()
value = value:sub(2, -2)
end
_G[key:upper()] = value
::CONTINUE::
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment