Merge pull request #339 from jack230230/master

Add App.Metadata
This commit is contained in:
2016-04-30 09:36:46 -04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -211,7 +211,7 @@ func (c Command) HasName(name string) bool {
func (c Command) startApp(ctx *Context) error {
app := NewApp()
app.Metadata = ctx.App.Metadata
// set the name and usage
app.Name = fmt.Sprintf("%s %s", ctx.App.Name, c.Name)
if c.HelpName == "" {