版本信息输出时应用色彩参数

This commit is contained in:
tsosunchia
2023-12-14 14:51:10 +08:00
parent 96e0558fef
commit 5d796ce5cd

View File

@@ -80,13 +80,6 @@ func Excute() {
fmt.Print(parser.Usage(err))
return
}
if !*jsonPrint {
printer.Version()
}
if *ver {
printer.CopyRight()
os.Exit(0)
}
if *nocolor {
color.NoColor = true
@@ -94,6 +87,15 @@ func Excute() {
color.NoColor = false
}
if !*jsonPrint {
printer.Version()
}
if *ver {
printer.CopyRight()
os.Exit(0)
}
domain := *str
if *port == 0 {