1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:24:43 -07:00

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
This commit is contained in:
Yasuhiro Matsumoto 2012-03-15 16:38:27 -07:00 committed by Robert Griesemer
parent 3211b2cca9
commit 7694da1f3b

View File

@ -26,7 +26,7 @@ var (
// main operation modes // main operation modes
list = flag.Bool("l", false, "list files whose formatting differs from gofmt's") 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") 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") simplifyAST = flag.Bool("s", false, "simplify code")
doDiff = flag.Bool("d", false, "display diffs instead of rewriting files") doDiff = flag.Bool("d", false, "display diffs instead of rewriting files")
allErrors = flag.Bool("e", false, "print all (including spurious) errors") allErrors = flag.Bool("e", false, "print all (including spurious) errors")