mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-18 14:54:19 +01:00
fix ./cmd -v (#90)
fix ./cmd -v
before:
print nothing
after:
printf
version:
buildDate:
gitCommit:
This commit is contained in:
@@ -98,7 +98,7 @@ func parseFlag() {
|
||||
if err := viper.BindPFlags(pflag.CommandLine); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if viper.GetBool("v") {
|
||||
if viper.GetBool("version") {
|
||||
fmt.Println("version:", version)
|
||||
fmt.Println("buildDate:", buildDate)
|
||||
fmt.Println("gitCommit:", gitCommit)
|
||||
|
||||
Reference in New Issue
Block a user