1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:24:42 -07:00

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
This commit is contained in:
Robert Griesemer 2009-11-12 18:26:45 -08:00
parent a23746ea65
commit 511772c888
2 changed files with 0 additions and 6 deletions

View File

@ -24,8 +24,6 @@ The flags are:
align with spaces instead of tabs.
-tabwidth=8
tab width in spaces.
-align=true
align columns.
Debugging flags:

View File

@ -28,7 +28,6 @@ var (
trace = flag.Bool("trace", false, "print parse trace");
// layout control
align = flag.Bool("align", true, "align columns");
tabwidth = flag.Int("tabwidth", 8, "tab width");
usespaces = flag.Bool("spaces", false, "align with spaces instead of tabs");
)
@ -63,9 +62,6 @@ func parserMode() uint {
func printerMode() uint {
mode := uint(0);
if !*align {
mode |= printer.RawFormat
}
if *usespaces {
mode |= printer.UseSpaces
}