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.
This commit is contained in:
Tamir Duberstein 2017-03-13 21:46:38 -04:00
parent 16c014f1a1
commit f909962338
No known key found for this signature in database
GPG key ID: 1C1E98CC8E17BB89

View file

@ -788,6 +788,7 @@ func (c *Command) initHelpCmd() {
},
}
}
c.RemoveCommand(c.helpCommand)
c.AddCommand(c.helpCommand)
}