search context hierachy for global flags

This commit is contained in:
Fabian Ruff
2015-05-18 17:39:48 +02:00
committed by Fabian Ruff
parent 942282e931
commit 65d50017d4
6 changed files with 75 additions and 31 deletions

View File

@@ -105,7 +105,7 @@ func (c Command) Run(ctx *Context) error {
fmt.Fprintln(ctx.App.Writer)
return nerr
}
context := NewContext(ctx.App, set, ctx.globalSet)
context := NewContext(ctx.App, set, ctx)
if checkCommandCompletions(context, c.Name) {
return nil