diff --git a/cmd/cmd.go b/cmd/cmd.go index 32d0573..31b8f6a 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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 {