From 7108299550642dcf62e32be0dadcc1daf7efec96 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 14 Feb 2024 13:01:34 +0100 Subject: [PATCH] cmd/thalos/main.go: minor cleanup in VersionPrinter --- cmd/thalos/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/thalos/main.go b/cmd/thalos/main.go index 7b749ce..961dbb1 100644 --- a/cmd/thalos/main.go +++ b/cmd/thalos/main.go @@ -23,8 +23,8 @@ func main() { DisableDefaultText: true, } - cli.VersionPrinter = func(cCtx *cli.Context) { - fmt.Printf("Version %s\n", VersionString) + cli.VersionPrinter = func(ctx *cli.Context) { + fmt.Printf("Version %s\n", ctx.App.Version) } cli.VersionFlag = &cli.BoolFlag{