From 88ff9afb73d4f0181d5ae04a696675f23bcd94c2 Mon Sep 17 00:00:00 2001 From: fabianofranz Date: Tue, 7 Apr 2015 16:24:37 -0300 Subject: [PATCH] Revert handling 'help' string argument as help in all scenarios --- command.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/command.go b/command.go index 85908a9d..812b0860 100644 --- a/command.go +++ b/command.go @@ -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])) } } }