mirror of
https://github.com/spf13/cobra
synced 2024-11-16 18:57:08 +00:00
Revert handling 'help' string argument as help in all scenarios
This commit is contained in:
parent
fee4ba735a
commit
88ff9afb73
1 changed files with 0 additions and 3 deletions
|
@ -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]))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue