mirror of
https://github.com/golang/go
synced 2024-11-19 21:54:40 -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:
parent
3211b2cca9
commit
7694da1f3b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user