Merge pull request #152 from OVYA/master
Fix bash completion for deep level subcommands
This commit is contained in:
commit
b731cdcd0b
2
help.go
2
help.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user