From 8ebe3c9d4daeecd46a53791b783d4bbcd58e51ec Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 11 Mar 2024 17:13:33 -0400 Subject: Fixed the issue with --. --- src/lpm.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lpm.lua b/src/lpm.lua index 0d5a173..0289915 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2512,6 +2512,7 @@ not commonly used publically. for i,v in ipairs(ARGS) do if v:find("^%-%-") then + if #v == 2 then break end error("unknown flag " .. v) end end -- cgit v1.2.3