From 7b8b24fa32fba7f36d111ce506b9e5a0b142a188 Mon Sep 17 00:00:00 2001 From: Evan Anderson Date: Mon, 26 Jul 2021 15:48:07 -0700 Subject: [PATCH] Silence usage report on internal errors (#397) --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6ee56b9159..1fbaff8127 100644 --- a/main.go +++ b/main.go @@ -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() },