Commit 07f807b
authored
fix: suppress help output on runtime errors (#41)
Cobra prints usage/help text by default when `RunE` returns an error.
This meant any runtime error (e.g. a rebase conflict during `restack`)
would dump a wall of irrelevant help output before the actual error
message. Set `SilenceUsage: true` on the root command so help is only
shown for actual usage errors.
Closes #351 parent c31fa5c commit 07f807b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
0 commit comments