Skip to content

Commit 752b154

Browse files
committed
Custom version info formats support
1 parent 90022b9 commit 752b154

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ var optMap = options.Map{
104104
OPT_NOTIFY: {Type: options.BOOL},
105105
OPT_NO_COLOR: {Type: options.BOOL},
106106
OPT_HELP: {Type: options.BOOL},
107-
OPT_VER: {Type: options.BOOL},
107+
OPT_VER: {Type: options.MIXED},
108108

109109
OPT_VERB_VER: {Type: options.BOOL},
110110
OPT_COMPLETION: {},
@@ -154,7 +154,7 @@ func Run(gitRev string, gomod []byte) {
154154
printMan()
155155
os.Exit(0)
156156
case options.GetB(OPT_VER):
157-
genAbout(gitRev).Print()
157+
genAbout(gitRev).Print(options.GetS(OPT_VER))
158158
os.Exit(0)
159159
case options.GetB(OPT_VERB_VER):
160160
support.Print(APP, VER, gitRev, gomod)

0 commit comments

Comments
 (0)