diff options
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -576,6 +576,10 @@ func printLossyPathsJSON(sent, rcvd map[int] /* src port */ []int, hops map[int] func main() { flag.Parse() + if flag.Arg(0) == "" { + fmt.Fprintf(os.Stderr, "Must specify a target\n") + return + } target := flag.Arg(0) var probes []chan interface{} |