mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
Update zapret-tpws.lua
add error message
This commit is contained in:
parent
7c7d66d4ef
commit
23879741fb
@ -11,7 +11,7 @@ function opt.validate(self, value)
|
|||||||
-- Check each word
|
-- Check each word
|
||||||
for _, word in ipairs(words) do
|
for _, word in ipairs(words) do
|
||||||
if not word:sub(1, 2) == "--" then
|
if not word:sub(1, 2) == "--" then
|
||||||
return nil, translate("Error: Not all options start with double dash.")
|
return nil, opt.error = translate("Error: Not all options start with double dash.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user