[latex3-commits] [git/LaTeX3-latex3-l3build] master: Get --version right (1d2dd7e)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Mar 6 21:21:34 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/1d2dd7e815ae5e5d2def9e9f5ce3dcf40a9007bb
>---------------------------------------------------------------
commit 1d2dd7e815ae5e5d2def9e9f5ce3dcf40a9007bb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Mar 6 19:56:22 2018 +0000
Get --version right
>---------------------------------------------------------------
1d2dd7e815ae5e5d2def9e9f5ce3dcf40a9007bb
l3build-arguments.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/l3build-arguments.lua b/l3build-arguments.lua
index da78b6c..87625b3 100644
--- a/l3build-arguments.lua
+++ b/l3build-arguments.lua
@@ -141,8 +141,10 @@ local function argparse()
result["target"] = "help"
if a then
-- No options are allowed in position 1, so filter those out
- if not match(a, "^%-") or a == "--version" then
+ if a == "--version" then
result["target"] = "version"
+ elseif not match(a, "^%-") then
+ result["target"] = a
end
end
-- Stop here if help or version is required
More information about the latex3-commits
mailing list