From e4288bccb30832565d60b2f874ef2d170367b572 Mon Sep 17 00:00:00 2001 From: igorlombacx Date: Mon, 9 Oct 2023 17:24:14 +0100 Subject: [PATCH] printing CLI version if debug is enabled --- cmd/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index 756a2902d..35c0320e8 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -25,6 +25,9 @@ const ( func main() { var err error + if strings.Contains(strings.Join(os.Args[1:], ","), "--debug") { + logger.Printf("CLI VERSION: %s", params.Version) + } bindProxy() bindKeysToEnvAndDefault() configuration.LoadConfiguration()