aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-30 15:55:21 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-30 15:55:21 -0500
commitd8b06848ee250b8a378a75dd8f7c7cd36d0ce6e2 (patch)
treef53ea3a462a13f28883cbdd6ac2c53e03c6aa3b9 /src/lpm.lua
parenteec2fe103b82e3e76175aa7bcaacb85734602f75 (diff)
downloadlite-xl-plugin-manager-d8b06848ee250b8a378a75dd8f7c7cd36d0ce6e2.tar.gz
lite-xl-plugin-manager-d8b06848ee250b8a378a75dd8f7c7cd36d0ce6e2.zip
Added in debug for tls.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index d875cdf..16c20f0 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1440,8 +1440,8 @@ local function parse_arguments(arguments, options)
if flag_type == "flag" then
args[option] = true
elseif flag_type == "string" or flag_type == "number" then
- if not value then
- if i < #arguments then error("option " .. option .. " requires a " .. flag_type) end
+ if not value or value == "" then
+ if i == #arguments then error("option " .. option .. " requires a " .. flag_type) end
value = arguments[i+1]
i = i + 1
end