Merge pull request #441 from tianon/spaces-for-alignment

Switch "printHelp" tabwriter padchar to space
This commit is contained in:
Dan Buch 2016-06-01 18:43:28 -04:00
commit 41d262f932

View File

@ -191,7 +191,7 @@ func printHelp(out io.Writer, templ string, data interface{}) {
"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))
err := t.Execute(w, data)
if err != nil {