aboutsummaryrefslogtreecommitdiff
path: root/lpm.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-18 17:37:45 -0400
committerAdam <adamdharrison@gmail.com>2022-09-18 17:37:45 -0400
commitda37e3ed1e11853c5133c9851a4fc2dbf2ca8872 (patch)
treeceb417a9fdb539d0e5fa010151e0534348755103 /lpm.lua
parentd60333f917844e3fedfcdb6c8bba1eb8fc454cd9 (diff)
downloadlite-xl-plugin-manager-da37e3ed1e11853c5133c9851a4fc2dbf2ca8872.tar.gz
lite-xl-plugin-manager-da37e3ed1e11853c5133c9851a4fc2dbf2ca8872.zip
Committing these before I really screw things up.
Diffstat (limited to 'lpm.lua')
-rw-r--r--lpm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lpm.lua b/lpm.lua
index c0004d9..cab07c3 100644
--- a/lpm.lua
+++ b/lpm.lua
@@ -471,7 +471,7 @@ local function log_warning(message)
if not QUIET then io.stderr:write("warning: " .. message .. "\n") end
end
local function fatal_warning(message)
- if not FORCE then error(message) else log_warning(message) end
+ if not FORCE then error(message .. "; use --force to override") else log_warning(message) end
end
local function prompt(message)
io.stderr:write(message .. " [Y/n]: ")
@@ -1108,7 +1108,7 @@ xpcall(function()
local ARGS = parse_arguments(ARGV, {
json = "flag", userdir = "string", cachedir = "string", version = "flag", verbose = "flag",
quiet = "flag", version = "string", ["mod-version"] = "string", remotes = "flag", help = "flag",
- remotes = "flag", ssl_certs = "string", force = "string", arch = "string", ["assume-yes"] = "flag"
+ remotes = "flag", ssl_certs = "string", force = "flag", arch = "string", ["assume-yes"] = "flag"
})
if ARGS["version"] then
io.stdout:write(VERSION .. "\n")