From a889873af50a499d060097216dcdbcc26ed09e7c Mon Sep 17 00:00:00 2001 From: jszwedko Date: Sun, 3 May 2015 18:42:21 -0700 Subject: [PATCH] Set additional information on command's 'app' For completeness --- command.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command.go b/command.go index 132a1e3..d0bbd0c 100644 --- a/command.go +++ b/command.go @@ -157,6 +157,12 @@ func (c Command) startApp(ctx *Context) error { app.Commands = c.Subcommands app.Flags = c.Flags app.HideHelp = c.HideHelp + + app.Version = ctx.App.Version + app.HideVersion = ctx.App.HideVersion + app.Compiled = ctx.App.Compiled + app.Author = ctx.App.Author + app.Email = ctx.App.Email app.Writer = ctx.App.Writer // bash completion