This commit is contained in:
wjqserver 2025-03-30 17:02:45 +08:00
parent a66452cf10
commit 1adc3a3192
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ func readFlag() {
fmt.Println("[ERROR] cfg flag is deprecated, please use -c instead")
fmt.Printf("\n")
flag.Usage()
os.Exit(1)
os.Exit(2)
return nil
})
flag.BoolVar(&showVersion, "v", false, "show version and exit") // 添加-v标志