Skip to content

Commit

Permalink
fix: restore --help listing
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Sep 25, 2024
1 parent 00debac commit 9847cf2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
1 change: 1 addition & 0 deletions cmd/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
1 change: 1 addition & 0 deletions cmd/mtr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
1 change: 1 addition & 0 deletions cmd/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions cmd/traceroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9847cf2

Please sign in to comment.