[latex3-commits] [l3svn] 04/20: l3build: Parsing args is a local function

noreply at latex-project.org noreply at latex-project.org
Fri Apr 14 23:38:57 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 0443fdb6acf446776f7a292af740fb9e92c5f958
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Apr 14 18:25:33 2017 +0100

    l3build: Parsing args is a local function
---
 l3build/l3build.lua |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 64b2181..57c5e6b 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -171,7 +171,9 @@ psext  = psext  or ".ps"
 tlgext = tlgext or ".tlg"
 
 -- Parse command line options
-function argparse()
+-- This is done as a function (rather than do ... end) as it allows early
+-- termination (break)
+local function argparse()
   local result = { }
   local files  = { }
   local long_options =

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list