2,788
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
function export.get_args(args, params, inflection_params) | function export.get_args(args, params, inflection_params) | ||
if inflection_params then | if inflection_params then | ||
for | for _, v in ipairs(inflection_params) do | ||
params[ | params[v.param] = {list = true} | ||
end | end | ||
end | end | ||
Line 10: | Line 10: | ||
local inflections = {} | local inflections = {} | ||
if inflection_params then | if inflection_params then | ||
for | for _, v in ipairs(inflection_params) do | ||
local inflection = p[ | local inflection = p[v.param] | ||
inflection["label"] = v | inflection["label"] = v.label | ||
inflection["glossary"] = v | inflection["glossary"] = v.glossary | ||
table.insert(inflections, inflection) | table.insert(inflections, inflection) | ||
end | end |