aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-31 16:07:36 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-31 16:07:36 -0500
commit71e1d5f3534ea1663d136fef238f7d4786ed15bd (patch)
treed7ba614364aa805cc1b0a81d9e05a56fd28716c7 /src/lpm.lua
parent1f03811ff2fb168679c5d3add8574d6ddf986f34 (diff)
downloadlite-xl-plugin-manager-71e1d5f3534ea1663d136fef238f7d4786ed15bd.tar.gz
lite-xl-plugin-manager-71e1d5f3534ea1663d136fef238f7d4786ed15bd.zip
Added in --trace flag.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 08e0eaa..10d4022 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1516,7 +1516,7 @@ xpcall(function()
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 = "flag", arch = "string", ["assume-yes"] = "flag",
- ["install-optional"] = "flag", datadir = "string", binary = "string"
+ ["install-optional"] = "flag", datadir = "string", binary = "string", trace = "flag"
})
if ARGS["version"] then
io.stdout:write(VERSION .. "\n")
@@ -1614,6 +1614,9 @@ Flags have the following effects:
to all.
--no-install-optional On install, anything marked as optional
won't prompt.
+ --trace Dumps to STDERR useful debugging information, in
+ particular information relating to SSL connections,
+ and other network activity.
There also several flags which are classified as "risky", and are never enabled
in any circumstance unless explicitly supplied.
@@ -1651,6 +1654,7 @@ in any circumstance unless explicitly supplied.
if not system.stat(USERDIR) then common.mkdirp(USERDIR) end
CACHEDIR = common.normalize_path(ARGS["cachedir"]) or os.getenv("LPM_CACHE") or USERDIR .. PATHSEP .. "lpm"
TMPDIR = common.normalize_path(ARGS["tmpdir"]) or CACHEDIR .. PATHSEP .. "tmp"
+ if ARGS["trace"] then system.trace(true) end
repositories = {}
if ARGS[2] == "purge" then return lpm_purge() end