Skip to content

Commit

Permalink
Avoid double printing errors, and printing usage when unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkpickering committed Nov 10, 2023
1 parent 8b956d1 commit 716aa97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func init() {
}

func Execute() {
rootCmd.SilenceErrors = true
rootCmd.SilenceUsage = true
cobra.CheckErr(rootCmd.Execute())
}

Expand Down

0 comments on commit 716aa97

Please sign in to comment.