From 47a10c079dda2974ead45b800750926669b70c07 Mon Sep 17 00:00:00 2001 From: "dr.max" Date: Fri, 10 May 2019 11:54:38 -0700 Subject: [PATCH] Remove fmt.Printf of error since creates double error print to user (#96) Fixes issue #89 --- pkg/kn/commands/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/kn/commands/root.go b/pkg/kn/commands/root.go index 28776136e..b934b3b78 100644 --- a/pkg/kn/commands/root.go +++ b/pkg/kn/commands/root.go @@ -68,6 +68,9 @@ Eventing: Manage event subscriptions and channels. Connect up event sources.`, // Affects children as well SilenceUsage: true, + + // Prevents Cobra from dealing with errors as we deal with them in main.go + SilenceErrors: true, } if p.Output != nil { rootCmd.SetOutput(p.Output)