From: Brendan O'Dea Date: Mon, 27 Apr 2009 01:36:17 +0000 (-0700) Subject: flags.Usage() calls fmt.Fprintf() with incorrect args X-Git-Tag: weekly.2009-11-06~1758 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=68b881791f4fdabad0feeb5d49f40f4b8f9fe9d9;p=gostls13.git flags.Usage() calls fmt.Fprintf() with incorrect args R=r APPROVED=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27777 CL=27876 --- diff --git a/src/lib/flag.go b/src/lib/flag.go index a63bdf6b05..e66238f6dd 100644 --- a/src/lib/flag.go +++ b/src/lib/flag.go @@ -264,9 +264,9 @@ func PrintDefaults() { // then calls sys.Exit(1). func Usage() { if len(sys.Args) > 0 { - fmt.Fprintf(os.Stderr, "Usage of ", sys.Args[0], ": \n"); + fmt.Fprintln(os.Stderr, "Usage of", sys.Args[0] + ":"); } else { - fmt.Fprintf(os.Stderr, "Usage: \n"); + fmt.Fprintln(os.Stderr, "Usage:"); } PrintDefaults(); sys.Exit(1);