From 67df30f9b1c4fefe53acb6c51a1e05ed9975f68d Mon Sep 17 00:00:00 2001 From: koki-develop Date: Sat, 15 Apr 2023 22:00:49 +0900 Subject: [PATCH] set silence usage to true --- cmd/root.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 8c4f247..a6fa9d4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,10 +14,11 @@ var ( ) var rootCmd = &cobra.Command{ - Use: "gh grass", - Short: "Print github grass to console", - Long: "Print github grass to console.", - Args: cobra.ExactArgs(0), + Use: "gh grass", + Short: "Print github grass to console", + Long: "Print github grass to console.", + Args: cobra.ExactArgs(0), + SilenceUsage: true, RunE: func(cmd *cobra.Command, args []string) error { t, ok := themes[flagTheme] if !ok {