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:
parent
a23746ea65
commit
511772c888
@ -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:
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user