Module:Arguments: Difference between revisions

m
tweak comment line breaks
m (1 revision imported)
enws>CalendulaAsteraceae
m (tweak comment line breaks)
Tag: Reverted
Line 1: Line 1:
-- This module provides easy processing of arguments passed to Scribunto from
--[=[
-- #invoke. It is intended for use by other Lua modules, and should not be
This module provides easy processing of arguments passed to Scribunto from #invoke.
-- called from #invoke directly.
It is intended for use by other Lua modules, and should not be called from #invoke directly.
]=]


local libraryUtil = require('libraryUtil')
local libraryUtil = require('libraryUtil')
Line 8: Line 9:
local arguments = {}
local arguments = {}


-- Generate four different tidyVal functions, so that we don't have to check the
-- Generate four different tidyVal functions, so that we don't have to check the options every time we call it.
-- options every time we call it.


local function tidyValDefault(key, val)
local function tidyValDefault(key, val)