diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/cluttex/src/texrunner/option.lua')
-rw-r--r-- | Master/texmf-dist/doc/support/cluttex/src/texrunner/option.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/cluttex/src/texrunner/option.lua b/Master/texmf-dist/doc/support/cluttex/src/texrunner/option.lua index 839e3a40d67..19598610add 100644 --- a/Master/texmf-dist/doc/support/cluttex/src/texrunner/option.lua +++ b/Master/texmf-dist/doc/support/cluttex/src/texrunner/option.lua @@ -19,6 +19,7 @@ -- options_and_params, i = parseoption(arg, options) -- options[i] = {short = "o", long = "option" [, param = true] [, boolean = true] [, allow_single_hyphen = false]} +-- options_and_params[j] = {"option", "value"} -- arg[i], arg[i + 1], ..., arg[#arg] are non-options local function parseoption(arg, options) local i = 1 @@ -58,6 +59,7 @@ local function parseoption(arg, options) elseif o.boolean and name == "no-" .. o.long then -- --no-option opt = o + param = false break end end @@ -97,6 +99,7 @@ local function parseoption(arg, options) elseif o.boolean and name == "no-" .. o.long then -- -no-option opt = o + param = false break end elseif o.long and #name >= 2 and (o.long == name or (o.boolean and name == "no-" .. o.long)) then |