aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/gofmt.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-08 11:16:55 -0500
committerRuss Cox <rsc@golang.org>2015-01-14 04:13:59 +0000
commit75c7dd3283afd1180780ec7571df4f5edcd08ddf (patch)
treea6070a25cc3b3541c08520bb855813565e0b789b /git-codereview/gofmt.go
parent66a7c2dab7b44ca6df91f7d79864cda77389d9a2 (diff)
downloadgo-x-review-75c7dd3283afd1180780ec7571df4f5edcd08ddf.tar.xz
git-codereview: document short names in mail command
While we're here, fix bug in git-codereview gofmt usage message. Change-Id: I547b8ae6fab01db1bc6b44b0e706d8faadbb60a9 Reviewed-on: https://go-review.googlesource.com/2781 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'git-codereview/gofmt.go')
-rw-r--r--git-codereview/gofmt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-codereview/gofmt.go b/git-codereview/gofmt.go
index 93da314..f9644a0 100644
--- a/git-codereview/gofmt.go
+++ b/git-codereview/gofmt.go
@@ -21,7 +21,7 @@ func gofmt(args []string) {
flags.BoolVar(&gofmtList, "l", false, "list files that need to be formatted")
flags.Parse(args)
if len(flag.Args()) > 0 {
- fmt.Fprintf(stderr(), "Usage: %s gofmt %s [-l]\n", globalFlags, os.Args[0])
+ fmt.Fprintf(stderr(), "Usage: %s gofmt %s [-l]\n", os.Args[0], globalFlags)
os.Exit(2)
}