[latex3-commits] [l3svn] 12/20: l3build: "options" better than "userargs"
noreply at latex-project.org
noreply at latex-project.org
Fri Apr 14 23:39:05 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
commit 7b7e99df17732baaa5c694ee36ddb2a6a8a972a9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Apr 14 18:47:22 2017 +0100
l3build: "options" better than "userargs"
---
l3build/l3build.lua | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 6669317..47536f5 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -349,15 +349,15 @@ local function argparse()
return result
end
-userargs = argparse()
+options = argparse()
-local optdate = userargs["date"]
-local optengines = userargs["engine"]
-local opthalt = userargs["halt"]
-local opthelp = userargs["help"]
-local optpdf = userargs["pdf"]
-local optquiet = userargs["quiet"]
-local optrelease = userargs["release"]
+local optdate = options["date"]
+local optengines = options["engine"]
+local opthalt = options["halt"]
+local opthelp = options["help"]
+local optpdf = options["pdf"]
+local optquiet = options["quiet"]
+local optrelease = options["release"]
-- Convert a file glob into a pattern for use by e.g. string.gub
-- Based on https://github.com/davidm/lua-glob-pattern
@@ -2234,9 +2234,9 @@ end
main = main or stdmain
-- Pick up and read any per-run testfiledir
-if userargs["testfiledir"] then
- if #userargs["testfiledir"] == 1 then
- testfiledir = userargs["testfiledir"][1]
+if options["testfiledir"] then
+ if #options["testfiledir"] == 1 then
+ testfiledir = options["testfiledir"][1]
if fileexists(testfiledir .. "/config.lua") then
dofile(testfiledir .. "/config.lua")
end
@@ -2247,4 +2247,4 @@ if userargs["testfiledir"] then
end
-- Call the main function
-main(userargs["target"], userargs["files"])
+main(options["target"], options["files"])
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list