From 801f42801ac780bdd91b195f5998f2d86398fba0 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 17 Jan 2023 20:10:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Fast=20Trace=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/cmd.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 1d344a6..6496ed2 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -56,6 +56,7 @@ func Excute() { // In case of error print error and print usage // This can also be done by passing -h or --help flags fmt.Print(parser.Usage(err)) + return } if *ver { @@ -65,11 +66,6 @@ func Excute() { domain := *str - if domain == "" { - fmt.Print(parser.Usage(err)) - return - } - if *fast_trace { fastTrace.FastTest(*tcp, *output) if *output { @@ -79,6 +75,11 @@ func Excute() { os.Exit(0) } + if domain == "" { + fmt.Print(parser.Usage(err)) + return + } + capabilities_check() // return