From f909962338d6a5a5c8adb246360da85bf62e785d Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Mon, 13 Mar 2017 21:46:38 -0400 Subject: [PATCH] remove help command before adding it This fixes an issue where each Execute call grows the number of times `help` appears in the help command by 1. --- command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command.go b/command.go index ae3930df..664bf5aa 100644 --- a/command.go +++ b/command.go @@ -788,6 +788,7 @@ func (c *Command) initHelpCmd() { }, } } + c.RemoveCommand(c.helpCommand) c.AddCommand(c.helpCommand) }