Merge pull request #441 from tianon/spaces-for-alignment
Switch "printHelp" tabwriter padchar to space
This commit is contained in:
commit
41d262f932
2
help.go
2
help.go
@ -191,7 +191,7 @@ func printHelp(out io.Writer, templ string, data interface{}) {
|
|||||||
"join": strings.Join,
|
"join": strings.Join,
|
||||||
}
|
}
|
||||||
|
|
||||||
w := tabwriter.NewWriter(out, 0, 8, 1, '\t', 0)
|
w := tabwriter.NewWriter(out, 1, 8, 2, ' ', 0)
|
||||||
t := template.Must(template.New("help").Funcs(funcMap).Parse(templ))
|
t := template.Must(template.New("help").Funcs(funcMap).Parse(templ))
|
||||||
err := t.Execute(w, data)
|
err := t.Execute(w, data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user