From 25f20b6d8ccd4edcdfec23c1a3c908516076ee06 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 6 May 2021 03:00:58 +0000 Subject: CTAN sync 202105060300 --- macros/latex/contrib/l3build/l3build-arguments.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'macros/latex/contrib/l3build/l3build-arguments.lua') 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 -- cgit v1.2.3