From 7694da1f3bd5cd62cf656bbe0b4b7123e29bbc08 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 15 Mar 2012 16:38:27 -0700 Subject: [PATCH] cmd/gofmt: show ascii in usage. windows cmd.exe can't show utf-8 correctly basically. chcp 65001 may make it show, but most people don't have fonts which can show it. R=golang-dev, rsc, adg, gri, r CC=golang-dev https://golang.org/cl/5820060 --- src/cmd/gofmt/gofmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gofmt/gofmt.go b/src/cmd/gofmt/gofmt.go index 2bb0b6754d..0bc385b5b5 100644 --- a/src/cmd/gofmt/gofmt.go +++ b/src/cmd/gofmt/gofmt.go @@ -26,7 +26,7 @@ var ( // main operation modes list = flag.Bool("l", false, "list files whose formatting differs from gofmt's") write = flag.Bool("w", false, "write result to (source) file instead of stdout") - rewriteRule = flag.String("r", "", "rewrite rule (e.g., 'α[β:len(α)] -> α[β:]')") + rewriteRule = flag.String("r", "", "rewrite rule (e.g., 'a[b:len(a)] -> a[b:]')") simplifyAST = flag.Bool("s", false, "simplify code") doDiff = flag.Bool("d", false, "display diffs instead of rewriting files") allErrors = flag.Bool("e", false, "print all (including spurious) errors")