mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
fixup! Don't display usage on a returned error by a RunE function
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
parent
4864275d4a
commit
264fb72ab2
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ func (c *Command) execute(a []string) *CmdError {
|
|||
if err != nil {
|
||||
c.Println(err)
|
||||
}
|
||||
return &CmdError{err, CommandError}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue