aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/urfave/cli/app.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey94@gmail.com>2017-09-29 02:08:56 -0700
committerJoseph Richey <joerichey94@gmail.com>2017-09-29 02:33:45 -0700
commit05911d5503434a802c6dc9909a74cc76c2bf6661 (patch)
treee1e7aa0ba09dcc4b4c56b28429d1f6f288bba03b /vendor/github.com/urfave/cli/app.go
parenta949b13dac670014c37c7181e368b9c0c7a7f0f5 (diff)
vendor: Update to latest versions
This changes the vendored sources of github.com/golang/protobuf, golang.org/x/crypto/ssh, and golang.org/x/sys/unix to be the current master versions.
Diffstat (limited to 'vendor/github.com/urfave/cli/app.go')
-rw-r--r--vendor/github.com/urfave/cli/app.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/urfave/cli/app.go b/vendor/github.com/urfave/cli/app.go
index 95ffc0b..51fc45d 100644
--- a/vendor/github.com/urfave/cli/app.go
+++ b/vendor/github.com/urfave/cli/app.go
@@ -85,6 +85,12 @@ type App struct {
ErrWriter io.Writer
// Other custom info
Metadata map[string]interface{}
+ // Carries a function which returns app specific info.
+ ExtraInfo func() map[string]string
+ // CustomAppHelpTemplate the text template for app help topic.
+ // cli.go uses text/template to render templates. You can
+ // render custom help text by setting this variable.
+ CustomAppHelpTemplate string
didSetup bool
}
@@ -234,7 +240,6 @@ func (a *App) Run(arguments []string) (err error) {
if a.Before != nil {
beforeErr := a.Before(context)
if beforeErr != nil {
- fmt.Fprintf(a.Writer, "%v\n\n", beforeErr)
ShowAppHelp(context)
HandleExitCoder(beforeErr)
err = beforeErr