From 46171550eb19aaee27698fb3ec2f58325ec2f4ff Mon Sep 17 00:00:00 2001 From: Robert Terhaar Date: Fri, 19 Apr 2024 14:54:06 -0400 Subject: [PATCH] fix unexpected usage output caused by RunE --- cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/root.go b/cmd/root.go index 9630e6a..cd33d7f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,6 +20,7 @@ This is useful for: PersistentPreRun: func(cmd *cobra.Command, args []string) { cfg.SetLoggerLevel() }, + SilenceUsage: true, } // Execute adds all child commands to the root command and sets flags appropriately.