Merge pull request #150 from eparis/help-not-available
Do not count "help" as "Available"
This commit is contained in:
		@ -857,6 +857,10 @@ func (c *Command) IsAvailableCommand() bool {
 | 
			
		||||
		return false
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if c.HasParent() && c.Parent().helpCommand == c {
 | 
			
		||||
		return false
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if c.Runnable() || c.HasAvailableSubCommands() {
 | 
			
		||||
		return true
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user