mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
return the undefined the option
This commit is contained in:
@@ -40,6 +40,9 @@ for _, r in ipairs(arg) do
|
||||
srcFile = v
|
||||
elseif k == "cache-policy" then
|
||||
cachePolicy = v
|
||||
else
|
||||
print(string.format("undefined option `%s`", r))
|
||||
return
|
||||
end
|
||||
|
||||
-- break the match iterate
|
||||
|
||||
Reference in New Issue
Block a user