Remove fmt.Printf of error since creates double error print to user (#96)

Fixes issue #89
This commit is contained in:
dr.max 2019-05-10 11:54:38 -07:00 committed by Knative Prow Robot
parent b6d1bb47e7
commit 47a10c079d
1 changed files with 3 additions and 0 deletions

View File

@ -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)