Merge pull request #152 from OVYA/master

Fix bash completion for deep level subcommands
This commit is contained in:
Jeremy Saenz 2014-11-23 13:40:21 -08:00
commit b731cdcd0b

View File

@ -206,7 +206,7 @@ func checkSubcommandHelp(c *Context) bool {
} }
func checkCompletions(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) ShowCompletions(c)
return true return true
} }