Merge pull request #8 from st3v/fix_cli_help_printer

Fix function signature for cli.HelpPrinter
This commit is contained in:
Asim 2015-05-21 00:11:48 +01:00
commit 56c605a051

View File

@ -1,6 +1,7 @@
package cmd
import (
"io"
"os"
"strings"
"text/tabwriter"
@ -102,7 +103,7 @@ GLOBAL OPTIONS:
{{end}}
`
cli.HelpPrinter = func(templ string, data interface{}) {
cli.HelpPrinter = func(writer io.Writer, templ string, data interface{}) {
w := tabwriter.NewWriter(os.Stdout, 0, 8, 1, '\t', 0)
t := template.Must(template.New("help").Parse(templ))
err := t.Execute(w, data)