diff --git a/command.go b/command.go index 46d46003..4b85f013 100644 --- a/command.go +++ b/command.go @@ -684,11 +684,6 @@ func (c *Command) execute(a []string) (err error) { c.Printf("Command %q is deprecated, %s\n", c.Name(), c.Deprecated) } - // Set the help verb to "help" if a custom word is not defined. - if len(c.HelpVerb) == 0 { - c.HelpVerb = "help" - } - // initialize help and version flag at the last point possible to allow for user // overriding c.InitDefaultHelpFlag() @@ -821,6 +816,11 @@ func (c *Command) ExecuteC() (cmd *Command, err error) { preExecHookFn(c) } + // Set the help verb to "help" if a custom word is not defined. + if len(c.HelpVerb) == 0 { + c.HelpVerb = "help" + } + // initialize help as the last point possible to allow for user // overriding c.InitDefaultHelpCmd()