2021-11-13 08:31:32 +00:00
|
|
|
function auMapCli(map, allowMultiple)
|
2021-05-20 12:56:44 +00:00
|
|
|
local ret = true
|
|
|
|
|
2021-11-13 08:31:32 +00:00
|
|
|
if (allowMultiple) then
|
2021-05-20 12:56:44 +00:00
|
|
|
ret = {}
|
|
|
|
end
|
|
|
|
|
|
|
|
for k, v in pairs(map) do
|
|
|
|
if (_OPTIONS[k] ~= nil) then
|
2021-11-13 08:31:32 +00:00
|
|
|
if (not allowMultiple) then
|
2021-05-20 12:56:44 +00:00
|
|
|
return v
|
|
|
|
end
|
|
|
|
|
|
|
|
table.insert(ret, v)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return ret
|
|
|
|
end
|
|
|
|
|
2021-11-13 08:31:32 +00:00
|
|
|
return auMapCli
|