diff --git a/cmd/dns.go b/cmd/dns.go index 6a58d62..415b447 100644 --- a/cmd/dns.go +++ b/cmd/dns.go @@ -54,6 +54,7 @@ Examples: } // dns specific flags + localFlags.BoolP("help", "h", false, "help for dns") localFlags.StringVar(&r.ctx.Protocol, "protocol", r.ctx.Protocol, "specify the protocol to use for the DNS query: TCP or UDP (default \"udp\")") localFlags.IntVar(&r.ctx.Port, "port", r.ctx.Port, "specify a non-standard port on the server to send the query to (default 53)") localFlags.StringVar(&r.ctx.Resolver, "resolver", r.ctx.Resolver, "specify the hostname or IP address of the name server to use as the resolver (default defined by the probe)") diff --git a/cmd/http.go b/cmd/http.go index 3d9935c..681b5f6 100644 --- a/cmd/http.go +++ b/cmd/http.go @@ -69,6 +69,7 @@ Examples: } // http specific flags + localFlags.BoolP("help", "h", false, "help for http") localFlags.StringVar(&r.ctx.Protocol, "protocol", r.ctx.Protocol, "specify the protocol to use: HTTP, HTTPS, or HTTP2 (default \"HTTP\")") localFlags.IntVar(&r.ctx.Port, "port", r.ctx.Port, "specify the port to use (default 80 for HTTP, 443 for HTTPS and HTTP2)") localFlags.StringVar(&r.ctx.Resolver, "resolver", r.ctx.Resolver, "specify the hostname or IP address of the name server to use for the DNS lookup (default defined by the probe)") diff --git a/cmd/mtr.go b/cmd/mtr.go index b27f67f..9314152 100644 --- a/cmd/mtr.go +++ b/cmd/mtr.go @@ -47,6 +47,7 @@ Examples: } // mtr specific flags + localFlags.BoolP("help", "h", false, "help for mtr") localFlags.StringVar(&r.ctx.Protocol, "protocol", r.ctx.Protocol, "specify the protocol to use for MTR: ICMP, TCP, or UDP (default \"icmp\")") localFlags.IntVar(&r.ctx.Port, "port", r.ctx.Port, "specify the port to use for MTR; only applicable for the TCP protocol (default 53)") localFlags.IntVar(&r.ctx.Packets, "packets", r.ctx.Packets, "specify the number of packets to send to each hop (default 3)") diff --git a/cmd/ping.go b/cmd/ping.go index 67befe0..258543f 100644 --- a/cmd/ping.go +++ b/cmd/ping.go @@ -52,6 +52,7 @@ Examples: } // ping specific flags + localFlags.BoolP("help", "h", false, "help for ping") localFlags.IntVar(&r.ctx.Packets, "packets", r.ctx.Packets, "specify the number of ECHO_REQUEST packets to send (default 3)") localFlags.BoolVar(&r.ctx.Infinite, "infinite", r.ctx.Infinite, "enable continuous pinging of the target until manually stopped (default false)") pingCmd.Flags().AddFlagSet(measurementFlags) diff --git a/cmd/traceroute.go b/cmd/traceroute.go index 4e0da24..8020f18 100644 --- a/cmd/traceroute.go +++ b/cmd/traceroute.go @@ -50,6 +50,7 @@ Examples: } // traceroute specific flags + localFlags.BoolP("help", "h", false, "help for traceroute") localFlags.StringVar(&r.ctx.Protocol, "protocol", r.ctx.Protocol, "specify the protocol to use for tracerouting: ICMP, TCP, or UDP (default \"icmp\")") localFlags.IntVar(&r.ctx.Port, "port", r.ctx.Port, "specify the port to use for the traceroute; only applicable for the TCP protocol (default 80)") tracerouteCmd.Flags().AddFlagSet(measurementFlags)