mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 22:48:29 +00:00
This commit is contained in:
parent
830bade7a4
commit
89a129521d
@ -1496,7 +1496,6 @@ function runner.configure(args)
|
|||||||
local options = {
|
local options = {
|
||||||
-- log is handled by core already.
|
-- log is handled by core already.
|
||||||
log = {1},
|
log = {1},
|
||||||
|
|
||||||
}
|
}
|
||||||
-- filled with all args that were non --options
|
-- filled with all args that were non --options
|
||||||
local nonopts = {}
|
local nonopts = {}
|
||||||
@ -1515,6 +1514,9 @@ function runner.configure(args)
|
|||||||
if o then
|
if o then
|
||||||
-- TODO --
|
-- TODO --
|
||||||
i = i + o[1]
|
i = i + o[1]
|
||||||
|
else
|
||||||
|
log("Error","unknown option command line option ", a)
|
||||||
|
os.exit(-1) -- ERRNO
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
@ -1525,8 +1527,8 @@ function runner.configure(args)
|
|||||||
elseif #nonopts == 1 then
|
elseif #nonopts == 1 then
|
||||||
return nonopts[1]
|
return nonopts[1]
|
||||||
else
|
else
|
||||||
-- TODO
|
log("Error", "There can only be one config file in command line.")
|
||||||
return true
|
os.exit(-1) -- ERRNO
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user