From 1eb8a835005365fe27f6e67920cd3e7ef4bd80f6 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Fri, 28 Oct 2022 14:07:17 +0200 Subject: [PATCH] Print version in debug and help messages --- lsyncd.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lsyncd.lua b/lsyncd.lua index 287fdb6..028a35c 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -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 )