summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3build/l3build-arguments.lua
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-06 03:00:58 +0000
committerNorbert Preining <norbert@preining.info>2021-05-06 03:00:58 +0000
commit25f20b6d8ccd4edcdfec23c1a3c908516076ee06 (patch)
treef889e071118d7d2db80066d14d14b020c50a2238 /macros/latex/contrib/l3build/l3build-arguments.lua
parent75db33dc347ec9cfbaa2f3ec538a2697351f571b (diff)
CTAN sync 202105060300
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-arguments.lua')
-rw-r--r--macros/latex/contrib/l3build/l3build-arguments.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/latex/contrib/l3build/l3build-arguments.lua b/macros/latex/contrib/l3build/l3build-arguments.lua
index aa2f086d61..80f19d66ad 100644
--- a/macros/latex/contrib/l3build/l3build-arguments.lua
+++ b/macros/latex/contrib/l3build/l3build-arguments.lua
@@ -1,6 +1,6 @@
--[[
-File l3build-arguments.lua Copyright (C) 2018-2020 The LaTeX3 Project
+File l3build-arguments.lua Copyright (C) 2018-2020 The LaTeX Project
It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -170,7 +170,7 @@ local function argparse()
end
long_options[k] = k
end
- local args = args
+ local arg = arg
-- arg[1] is a special case: must be a command or "-h"/"--help"
-- Deal with this by assuming help and storing only apparently-valid
-- input
@@ -239,21 +239,21 @@ local function argparse()
if optarg then
local opt = "-" .. (match(a, "^%-%-") and "-" or "") .. opt
stderr:write("Value not allowed for option " .. opt .."\n")
- return {"help"}
+ return { target = "help" }
end
else
if not optarg then
optarg = arg[i + 1]
if not optarg then
stderr:write("Missing value for option " .. a .."\n")
- return {"help"}
+ return { target = "help" }
end
i = i + 1
end
end
else
stderr:write("Unknown option " .. a .."\n")
- return {"help"}
+ return { target = "help" }
end
-- Store the result
if optarg then