return the undefined the option
This commit is contained in:
parent
85d955b52a
commit
83707692e1
|
|
@ -40,6 +40,9 @@ for _, r in ipairs(arg) do
|
||||||
srcFile = v
|
srcFile = v
|
||||||
elseif k == "cache-policy" then
|
elseif k == "cache-policy" then
|
||||||
cachePolicy = v
|
cachePolicy = v
|
||||||
|
else
|
||||||
|
print(string.format("undefined option `%s`", r))
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- break the match iterate
|
-- break the match iterate
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,9 @@ for _, r in ipairs(arg) do
|
||||||
dbFile = v
|
dbFile = v
|
||||||
elseif k == "cache-policy" then
|
elseif k == "cache-policy" then
|
||||||
cachePolicy = v
|
cachePolicy = v
|
||||||
|
else
|
||||||
|
print(string.format("undefined option `%s`", r))
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- break the match iterate
|
-- break the match iterate
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue