Change Extras to Metadata

This commit is contained in:
王振威
2016-04-30 10:42:07 +08:00
parent 88ea7cbec8
commit f72d405107
2 changed files with 2 additions and 2 deletions

View File

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