Skip to content

Commit

Permalink
Set additional information on command's 'app'
Browse files Browse the repository at this point in the history
For completeness
  • Loading branch information
jszwedko committed May 4, 2015
1 parent 4ee3faf commit a889873
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a889873

Please sign in to comment.