Skip to content

Commit

Permalink
Silence usage report on internal errors (ko-build#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Anderson authored Jul 26, 2021
1 parent c014ec1 commit 7b8b24f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ func main() {

// Parent command to which all subcommands are added.
cmds := &cobra.Command{
Use: "ko",
Short: "Rapidly iterate with Go, Containers, and Kubernetes.",
Use: "ko",
Short: "Rapidly iterate with Go, Containers, and Kubernetes.",
SilenceUsage: true, // Don't show usage on errors
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
Expand Down

0 comments on commit 7b8b24f

Please sign in to comment.