From 0bdd0bf9c1128bfb2d0bc7a6ffb08a0923b57d7d Mon Sep 17 00:00:00 2001 From: Stev Witzel Date: Wed, 20 May 2015 23:39:11 +0100 Subject: [PATCH] Fix function signature for cli.HelpPrinter Necessary due to github.com/codegangsta/cli/commit/e8425 --- cmd/cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index ff3c12d6..90636cbd 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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)