Commit 68b88179 authored by Brendan O'Dea's avatar Brendan O'Dea

flags.Usage() calls fmt.Fprintf() with incorrect args

R=r
APPROVED=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27777
CL=27876
parent bf53e16f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment