diff options
Diffstat (limited to 'src/cmd/gofmt/doc.go')
-rw-r--r-- | src/cmd/gofmt/doc.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go index 1373b2657..fca42b76b 100644 --- a/src/cmd/gofmt/doc.go +++ b/src/cmd/gofmt/doc.go @@ -14,11 +14,12 @@ Usage: gofmt [flags] [path ...] The flags are: - -d Do not print reformatted sources to standard output. If a file's formatting is different than gofmt's, print diffs to standard output. + -e + Print all (including spurious) errors. -l Do not print reformatted sources to standard output. If a file's formatting is different from gofmt's, print its name @@ -31,6 +32,8 @@ The flags are: Do not print reformatted sources to standard output. If a file's formatting is different from gofmt's, overwrite it with gofmt's version. + +Formatting control flags: -comments=true Print comments; if false, all comments are elided from the output. -spaces @@ -40,6 +43,7 @@ The flags are: -tabwidth=8 Tab width in spaces. + The rewrite rule specified with the -r flag must be a string of the form: pattern -> replacement |