Build/Utils/lookupCmdArgs.lua

21 lines
355 B
Lua
Raw Normal View History

function lookupArgPair(map, array)
local ret = true
if (array) then
ret = {}
end
for k, v in pairs(map) do
if (_OPTIONS[k] ~= nil) then
if (not array) then
return v
end
table.insert(ret, v)
end
end
return ret
end
return lookupArgPair