From 762421d2705561ea39babf276be9f1861ce58326 Mon Sep 17 00:00:00 2001 From: RT Date: Fri, 19 Apr 2024 14:54:59 -0400 Subject: [PATCH] fix unexpected usage output caused by RunE (#13) --- 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.