aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--src/lpm.lua8
2 files changed, 11 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a5f819..0ab4b61 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+# 1.0.2 (forthcoming)
+
+* Suppresses the progress bar by default if we're not on a TTY.
+* Added `url` as a field to `SPEC.md`.
+* Modified `run` so that it'll use the system version if you don't specify one.
# 1.0.1
diff --git a/src/lpm.lua b/src/lpm.lua
index 9a41848..9e37dfb 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -1530,10 +1530,14 @@ local function lpm_lite_xl_list()
end
local function lpm_lite_xl_run(version, ...)
- if not version then error("requires a version") end
+ if not version then error("requires a version or arguments") end
+ local arguments = { ... }
+ if not version:find("^%d+") and version ~= "system" then
+ table.insert(arguments, 1, version)
+ version = "system"
+ end
local lite_xl = get_lite_xl(version) or error("can't find lite-xl version " .. version)
local addons = {}
- local arguments = { ... }
local i = 1
while i <= #arguments do
if arguments[i] == "--" then break end