Revert handling 'help' string argument as help in all scenarios

This commit is contained in:
fabianofranz 2015-04-07 16:24:37 -03:00
parent fee4ba735a
commit 88ff9afb73

View file

@ -371,9 +371,6 @@ func (c *Command) Find(arrs []string) (*Command, []string, error) {
// only accept a single prefix match - multiple matches would be ambiguous
if len(matches) == 1 {
return innerfind(matches[0], argsMinusX(args, argsWOflags[0]))
} else if len(matches) == 0 && len(args) > 0 && args[0] == "help" {
// special case help command
return innerfind(c, argsMinusX(append(args, "--help"), argsWOflags[0]))
}
}
}