aboutsummaryrefslogtreecommitdiff
path: root/lpm.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-12 18:00:30 -0400
committerAdam <adamdharrison@gmail.com>2022-09-12 18:00:30 -0400
commit951160580529a3498e62381e29725fa320d076bc (patch)
tree7fb4db5ca4a5a80d9b98e7f1f744ebea31178a5c /lpm.lua
parente2e70a0d3b74eca224970ec2023561b59a1b2efd (diff)
downloadlite-xl-plugin-manager-951160580529a3498e62381e29725fa320d076bc.tar.gz
lite-xl-plugin-manager-951160580529a3498e62381e29725fa320d076bc.zip
Added in CI, and added in the ability to cross-compile.
Diffstat (limited to 'lpm.lua')
-rw-r--r--lpm.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lpm.lua b/lpm.lua
index 3871fd1..7d20671 100644
--- a/lpm.lua
+++ b/lpm.lua
@@ -880,7 +880,11 @@ end
local status = 0
xpcall(function()
- local ARGS = parse_arguments(ARGV, { json = "flag", userdir = "string", cachedir = "string", verbose = "flag", quiet = "flag", version = "string", modversion = "string" })
+ local ARGS = parse_arguments(ARGV, { json = "flag", userdir = "string", cachedir = "string", version = "flag", verbose = "flag", quiet = "flag", version = "string", modversion = "string" })
+ if ARGS["version"] then
+ io.stdout:write(VERSION .. "\n")
+ os.exit(0)
+ end
VERBOSE = ARGS["verbose"] or false
JSON = ARGS["json"] or os.getenv("LPM_JSON")
QUIET = ARGS["quiet"] or os.getenv("LPM_QUIET")
@@ -946,7 +950,7 @@ xpcall(function()
else
io.stderr:write([[
Usage: lpm COMMAND [--json] [--userdir=directory] [--cachedir=directory]
- [--verbose] [--version=2.1] [--modversion=3] [--quiet]
+ [--verbose] [--liteversion=2.1] [--modversion=3] [--quiet] [--version]
LPM is a package manager for `lite-xl`, written in C (and packed-in lua).