Permalink
Browse files

Adding a flush to errorout so users receive feedback when they provid…

…e invalid cmd line args to tcpdump
  • Loading branch information...
jcuga committed Feb 12, 2015
1 parent dbb8110 commit 9a4d7bbc7d2ea6dec69e733db7d36694e1cd9738
Showing with 1 addition and 0 deletions.
  1. +1 −0 tools/tcpdump/tcpdump.go
View
@@ -34,6 +34,7 @@ func main() {
flag.Usage = func() {
fmt.Fprintf(errout, "usage: %s [ -i interface ] [ -s snaplen ] [ -X ] [ expression ]\n", os.Args[0])
errout.Flush()
os.Exit(1)
}

0 comments on commit 9a4d7bb

Please sign in to comment.