Skip to content

Commit 511772c

Browse files
committed
Remove -align flag from gofmt.
(Making it work correctly with -spaces is a bit of work and the output won't make much sense as it is intended as input to tabwriter.) Fixes #100. R=rsc https://golang.org/cl/154102
1 parent a23746e commit 511772c

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/cmd/gofmt/doc.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ The flags are:
2424
align with spaces instead of tabs.
2525
-tabwidth=8
2626
tab width in spaces.
27-
-align=true
28-
align columns.
2927
3028
Debugging flags:
3129

src/cmd/gofmt/gofmt.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ var (
2828
trace = flag.Bool("trace", false, "print parse trace");
2929

3030
// layout control
31-
align = flag.Bool("align", true, "align columns");
3231
tabwidth = flag.Int("tabwidth", 8, "tab width");
3332
usespaces = flag.Bool("spaces", false, "align with spaces instead of tabs");
3433
)
@@ -63,9 +62,6 @@ func parserMode() uint {
6362

6463
func printerMode() uint {
6564
mode := uint(0);
66-
if !*align {
67-
mode |= printer.RawFormat
68-
}
6965
if *usespaces {
7066
mode |= printer.UseSpaces
7167
}

0 commit comments

Comments
 (0)