From 84f29d05609a3d74aa4a9cf41fbbceda2d903d8f Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Sat, 12 Aug 2023 22:44:56 +0300 Subject: [PATCH] Improve version output --- cli/cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 56d3551..be19bca 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -62,7 +62,7 @@ var optMap = options.Map{ OPT_TAGS: {Mergeble: true}, OPT_NO_COLOR: {Type: options.BOOL}, OPT_HELP: {Type: options.BOOL}, - OPT_VER: {Type: options.BOOL}, + OPT_VER: {Type: options.MIXED}, OPT_VERB_VER: {Type: options.BOOL}, OPT_COMPLETION: {}, @@ -93,7 +93,7 @@ func Run(gitRev string, gomod []byte) { printMan() os.Exit(0) case options.GetB(OPT_VER): - genAbout(gitRev).Print() + genAbout(gitRev).Print(options.GetS(OPT_VER)) os.Exit(0) case options.GetB(OPT_VERB_VER): support.Print(APP, VER, gitRev, gomod)