When an error occurs anywhere in a command, Cobra used to print the error itself and command usage help. We already print error in `main()`, and we don't want to use command usage string on anything other than flag-parsing errors. This also fixes the double output of each error. |
||
|---|---|---|
| .. | ||
| pr.go | ||
| pr_test.go | ||
| root.go | ||