From 1de84cac71e09f2b6e40c9aa1d5b2221327032ed Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Fri, 27 May 2022 10:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9dfb1e..f7c4a4d 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,8 @@ NextTrace 所有的的 IP 地理位置`API DEMO`可以参考[这里](https://git ```shell Usage of nexttrace: + nexttrace [options] +Options: -T Use TCP SYN for tracerouting (default port is 80) -U Use UDP Package for tracerouting (default port is 53 in UDP) -V Check Version diff --git a/main.go b/main.go index 6523a78..03c8820 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ func flagApply() string { } ipArg := flag.Args() if flag.NArg() != 1 { - fmt.Println("Args Error\nUsage : ./nexttrace [-T] [-rdns] [-displayMode ] [-d ] [ -m ] [ -p ] [ -q ] [ -r ] ") + fmt.Println("Args Error\nUsage : nexttrace [-VTU] [-d DATAORIGIN.STR ] [ -m TTL ] [ -p PORT ] [ -q PROBES.COUNT ] [ -r PARALLELREQUESTS.COUNT ] [-rdns] [ -realtime | -table ] -report HOSTNAME") os.Exit(2) } return ipArg[0]