Set additional information on command's 'app'
For completeness
This commit is contained in:
parent
4ee3fafcf8
commit
a889873af5
@ -157,6 +157,12 @@ func (c Command) startApp(ctx *Context) error {
|
|||||||
app.Commands = c.Subcommands
|
app.Commands = c.Subcommands
|
||||||
app.Flags = c.Flags
|
app.Flags = c.Flags
|
||||||
app.HideHelp = c.HideHelp
|
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
|
app.Writer = ctx.App.Writer
|
||||||
|
|
||||||
// bash completion
|
// bash completion
|
||||||
|
Loading…
Reference in New Issue
Block a user