Skip to content

Commit e06ba01

Browse files
author
Mladen Rusev
committed
remove the shorthand fully use .BoolVar() instead of .BoolVarP(); fix a typo
1 parent 37ae1db commit e06ba01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/version.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ var versionCmd = &cobra.Command{
1818

1919
func init() {
2020
rootCmd.AddCommand(versionCmd)
21-
versionCmd.PersistentFlags().BoolVarP(
21+
versionCmd.PersistentFlags().BoolVar(
2222
&verbose,
2323
"verbose",
24-
"V", // a lowercase v was causing a panic: unable to redefine 'v' shorthand in "version" flagset: it's already used for "verbose" flag
2524
false,
26-
"If enabled, displays the additional information about this built.",
25+
"If enabled, displays the additional information about this build.",
2726
)
2827
}

0 commit comments

Comments
 (0)