From 92211c448d04f8672d287e7ef3272d5e86abadbc Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 6 Mar 2015 22:53:24 -0600 Subject: [PATCH] cmd/stringer: remove os.Exit call from Usage func The caller of Usage should call os.Exit -- Usage shouldn't call it. Change-Id: I3decf662883fb2a6b19b7035138ee8a06a02de08 Reviewed-on: https://go-review.googlesource.com/7110 Reviewed-by: Andrew Gerrand --- cmd/stringer/stringer.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/stringer/stringer.go b/cmd/stringer/stringer.go index 0bc7aa87..62941001 100644 --- a/cmd/stringer/stringer.go +++ b/cmd/stringer/stringer.go @@ -94,7 +94,6 @@ func Usage() { fmt.Fprintf(os.Stderr, "\thttp://godoc.org/golang.org/x/tools/cmd/stringer\n") fmt.Fprintf(os.Stderr, "Flags:\n") flag.PrintDefaults() - os.Exit(2) } func main() {