We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90022b9 commit 752b154Copy full SHA for 752b154
1 file changed
cli/cli.go
@@ -104,7 +104,7 @@ var optMap = options.Map{
104
OPT_NOTIFY: {Type: options.BOOL},
105
OPT_NO_COLOR: {Type: options.BOOL},
106
OPT_HELP: {Type: options.BOOL},
107
- OPT_VER: {Type: options.BOOL},
+ OPT_VER: {Type: options.MIXED},
108
109
OPT_VERB_VER: {Type: options.BOOL},
110
OPT_COMPLETION: {},
@@ -154,7 +154,7 @@ func Run(gitRev string, gomod []byte) {
154
printMan()
155
os.Exit(0)
156
case options.GetB(OPT_VER):
157
- genAbout(gitRev).Print()
+ genAbout(gitRev).Print(options.GetS(OPT_VER))
158
159
case options.GetB(OPT_VERB_VER):
160
support.Print(APP, VER, gitRev, gomod)
0 commit comments