Commit 511772c8 authored by Robert Griesemer's avatar Robert Griesemer

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
parent a23746ea
...@@ -24,8 +24,6 @@ The flags are: ...@@ -24,8 +24,6 @@ The flags are:
align with spaces instead of tabs. align with spaces instead of tabs.
-tabwidth=8 -tabwidth=8
tab width in spaces. tab width in spaces.
-align=true
align columns.
Debugging flags: Debugging flags:
......
...@@ -28,7 +28,6 @@ var ( ...@@ -28,7 +28,6 @@ var (
trace = flag.Bool("trace", false, "print parse trace"); trace = flag.Bool("trace", false, "print parse trace");
// layout control // layout control
align = flag.Bool("align", true, "align columns");
tabwidth = flag.Int("tabwidth", 8, "tab width"); tabwidth = flag.Int("tabwidth", 8, "tab width");
usespaces = flag.Bool("spaces", false, "align with spaces instead of tabs"); usespaces = flag.Bool("spaces", false, "align with spaces instead of tabs");
) )
...@@ -63,9 +62,6 @@ func parserMode() uint { ...@@ -63,9 +62,6 @@ func parserMode() uint {
func printerMode() uint { func printerMode() uint {
mode := uint(0); mode := uint(0);
if !*align {
mode |= printer.RawFormat
}
if *usespaces { if *usespaces {
mode |= printer.UseSpaces mode |= printer.UseSpaces
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment