return the undefined the option

This commit is contained in:
Lion
2022-07-02 17:35:01 +08:00
parent f97e72c23e
commit 59e5545d70
2 changed files with 6 additions and 0 deletions

View File

@@ -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