Module:Arguments: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
--[=[
-- This module provides easy processing of arguments passed to Scribunto from
This module provides easy processing of arguments passed to Scribunto from #invoke.
-- #invoke. It is intended for use by other Lua modules, and should not be
It is intended for use by other Lua modules, and should not be called from #invoke directly.
-- called from #invoke directly.
]=]


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


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


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