return the undefined the option
This commit is contained in:
parent
f97e72c23e
commit
59e5545d70
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@ for _, r in ipairs(arg) do
|
|||
dbFile = v
|
||||
elseif k == "cache-policy" then
|
||||
cachePolicy = v
|
||||
else
|
||||
print(string.format("undefined option `%s`", r))
|
||||
return
|
||||
end
|
||||
|
||||
-- break the match iterate
|
||||
|
|
|
|||
Loading…
Reference in New Issue