mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-03 09:36:11 +00:00
版本信息输出时应用色彩参数
This commit is contained in:
1 parent
96e0558fef
commit
5d796ce5cd
1 file changed
+9
-7
+9
-7
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user