diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-05-18 00:15:13 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-05-18 00:15:13 +0200 |
commit | cd12b5497dc4a12dc33751a0deffda08b26bcbcd (patch) | |
tree | 0f4d1084f5f38e0cc60a617c58afc3ef94e1e6a5 /tex/generic/context/luatex/luatex-basics-gen.lua | |
parent | 7efbfd1d82c215c154a4840a906e0aa55e07ed0e (diff) | |
download | context-cd12b5497dc4a12dc33751a0deffda08b26bcbcd.tar.gz |
2014-05-17 23:48:00
Diffstat (limited to 'tex/generic/context/luatex/luatex-basics-gen.lua')
-rw-r--r-- | tex/generic/context/luatex/luatex-basics-gen.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tex/generic/context/luatex/luatex-basics-gen.lua b/tex/generic/context/luatex/luatex-basics-gen.lua index a304ab6aa..c19a49af3 100644 --- a/tex/generic/context/luatex/luatex-basics-gen.lua +++ b/tex/generic/context/luatex/luatex-basics-gen.lua @@ -353,3 +353,16 @@ end function table.setmetatableindex(t,f) setmetatable(t,{ __index = f }) end + +-- helper for plain: + +arguments = { } + +if arg then + for i=1,#arg do + local k, v = string.match(arg[i],"^%-%-([^=]+)=?(.-)$") + if k and v then + arguments[k] = v + end + end +end |