Fix bash completion for deep level subcommands

This commit is contained in:
pivaldi 2014-11-19 11:05:01 +01:00
parent 229729fae6
commit 59ef9567ae

View File

@ -206,7 +206,7 @@ func checkSubcommandHelp(c *Context) bool {
}
func checkCompletions(c *Context) bool {
if c.GlobalBool(BashCompletionFlag.Name) && c.App.EnableBashCompletion {
if (c.GlobalBool(BashCompletionFlag.Name) || c.Bool(BashCompletionFlag.Name)) && c.App.EnableBashCompletion {
ShowCompletions(c)
return true
}