Skip to content
Myr

remove help command before adding it (#399)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This fixes an issue where each Execute call grows the number of times `help` appears in the help command by 1.

authored by Tamir Duberstein · committed by Eric Paris · parent 16c014f · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:command.go+1 added
786 unmodified lines
787 }788 },789 }790 }791 c.RemoveCommand(c.helpCommand)792 c.AddCommand(c.helpCommand)793}794795// ResetCommands used for testing.
511 unmodified lines