Add App extras info

This commit is contained in:
王振威
2016-03-02 10:45:13 +08:00
parent a2943485b1
commit 88ea7cbec8
2 changed files with 3 additions and 1 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
// set the name and usage
app.Name = fmt.Sprintf("%s %s", ctx.App.Name, c.Name)
if c.HelpName == "" {