diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-04-26 09:55:32 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-04-26 09:55:32 +0200 |
| commit | 7b15ed9ef455b6b66c6b376898a88aef5d6a9970 (patch) | |
| tree | 3ef530baa80cdf29436ba981f5783be6b4d2202b /src/cmd/gofmt/doc.go | |
| parent | 50104cc32a498f7517a51c8dc93106c51c7a54b4 (diff) | |
| download | golang-7b15ed9ef455b6b66c6b376898a88aef5d6a9970.tar.gz | |
Imported Upstream version 2011.04.13upstream/2011.04.13
Diffstat (limited to 'src/cmd/gofmt/doc.go')
| -rw-r--r-- | src/cmd/gofmt/doc.go | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go index 2d2c9ae61..e44030eee 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 |
