Skip to content

Commit fda6426

Browse files
authored
fix ./cmd -v (#90)
fix ./cmd -v before: print nothing after: printf version: buildDate: gitCommit:
1 parent d0236ac commit fda6426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func parseFlag() {
9898
if err := viper.BindPFlags(pflag.CommandLine); err != nil {
9999
panic(err)
100100
}
101-
if viper.GetBool("v") {
101+
if viper.GetBool("version") {
102102
fmt.Println("version:", version)
103103
fmt.Println("buildDate:", buildDate)
104104
fmt.Println("gitCommit:", gitCommit)

0 commit comments

Comments
 (0)