summaryrefslogtreecommitdiff
path: root/src/cmd/gofmt/doc.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-03-10 12:54:18 -0800
committerRobert Griesemer <gri@golang.org>2011-03-10 12:54:18 -0800
commit2099e9fdacbd64cdec0b9e5ea436063265ae1d98 (patch)
tree484690da16854a90491cb9bbf89bd1db00b7cbda /src/cmd/gofmt/doc.go
parent034ca39e56d60e3eaa037fa976b8954939ce6d2f (diff)
downloadgo-git-2099e9fdacbd64cdec0b9e5ea436063265ae1d98.tar.gz
gofmt: remove -trace and -ast flags
Functionality was only present for debuggging and now is available in gocheck where is makes more sense. R=rsc CC=golang-dev https://golang.org/cl/4239078
Diffstat (limited to 'src/cmd/gofmt/doc.go')
-rw-r--r--src/cmd/gofmt/doc.go16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go
index 2d2c9ae611..e44030eee9 100644
--- a/src/cmd/gofmt/doc.go
+++ b/src/cmd/gofmt/doc.go
@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
/*
-
Gofmt formats Go programs.
Without an explicit path, it processes the standard input. Given a file,
@@ -16,14 +15,16 @@ Usage:
The flags are:
-l
- just list files whose formatting differs from gofmt's; generate no other output
- unless -w is also set.
+ just list files whose formatting differs from gofmt's;
+ generate no other output unless -w is also set.
-r rule
apply the rewrite rule to the source before reformatting.
-s
try to simplify code (after applying the rewrite rule, if any).
-w
if set, overwrite each input file with its output.
+ -comments=true
+ print comments; if false, all comments are elided from the output.
-spaces
align with spaces instead of tabs.
-tabindent
@@ -31,15 +32,6 @@ The flags are:
-tabwidth=8
tab width in spaces.
-Debugging flags:
-
- -trace
- print parse trace.
- -ast
- print AST (before rewrites).
- -comments=true
- print comments; if false, all comments are elided from the output.
-
The rewrite rule specified with the -r flag must be a string of the form:
pattern -> replacement