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 <adg@golang.org>
This commit is contained in:
Paul Smith 2015-03-06 22:53:24 -06:00 committed by Andrew Gerrand
parent c327a7c00b
commit 92211c448d
1 changed files with 0 additions and 1 deletions

View File

@ -94,7 +94,6 @@ func Usage() {
fmt.Fprintf(os.Stderr, "\thttp://godoc.org/golang.org/x/tools/cmd/stringer\n") fmt.Fprintf(os.Stderr, "\thttp://godoc.org/golang.org/x/tools/cmd/stringer\n")
fmt.Fprintf(os.Stderr, "Flags:\n") fmt.Fprintf(os.Stderr, "Flags:\n")
flag.PrintDefaults() flag.PrintDefaults()
os.Exit(2)
} }
func main() { func main() {