[latex3-commits] [git/l3build] master: Support options which are long-only (5675246)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Dec 25 10:23:00 CET 2017
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/567524625f64b1d8861434110d56bcc4110fe119
>---------------------------------------------------------------
commit 567524625f64b1d8861434110d56bcc4110fe119
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Dec 25 09:23:00 2017 +0000
Support options which are long-only
This will be necessary as we have more options.
>---------------------------------------------------------------
567524625f64b1d8861434110d56bcc4110fe119
l3build.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/l3build.lua b/l3build.lua
index 0507e31..2db3bb1 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -320,7 +320,9 @@ local function argparse()
local short_options = { }
-- Turn long/short options into two lookup tables
for k,v in pairs(option_list) do
- short_options[v["short"]] = k
+ if v["short"] then
+ short_options[v["short"]] = k
+ end
long_options[k] = k
end
local args = args
More information about the latex3-commits
mailing list