Print version in debug and help messages

This commit is contained in:
Daniel Poelzleithner 2022-10-28 14:07:17 +02:00
parent e6f3427c5f
commit 1eb8a83500
1 changed files with 5 additions and 0 deletions

View File

@ -5565,8 +5565,10 @@ end
--
function runner.help( )
io.stdout:write(
'lsyncd version: ' .. lsyncd_version ..
[[
USAGE:
runs a config file:
lsyncd [OPTIONS] [CONFIG-FILE]
@ -5867,6 +5869,9 @@ function runner.configure( args, monitors )
i = i + 1
end
log( 'Debug', 'lsyncd version: '.. lsyncd_version .. ' starting.' )
log( 'Debug', 'module search path: '.. package.path)
if clSettings.scripts then
for _, file in ipairs(clSettings.scripts) do
log( 'Info', 'Run addition script: ' .. file )