Skip to content

Commit 37ae1db

Browse files
author
Mladen Rusev
committed
fix the version subcommand panic
1 parent d4bbf5c commit 37ae1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func init() {
2121
versionCmd.PersistentFlags().BoolVarP(
2222
&verbose,
2323
"verbose",
24-
"v",
24+
"V", // a lowercase v was causing a panic: unable to redefine 'v' shorthand in "version" flagset: it's already used for "verbose" flag
2525
false,
2626
"If enabled, displays the additional information about this built.",
2727
)

0 commit comments

Comments
 (0)