From 32117b85123f5d3a53f57b0cd98eb3f38b59ce42 Mon Sep 17 00:00:00 2001 From: Christian Korneck Date: Tue, 16 Mar 2021 05:45:35 +0100 Subject: [PATCH] fix help message --- cmd/getignore.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmd/getignore.go b/cmd/getignore.go index 042093f..b4bd5df 100644 --- a/cmd/getignore.go +++ b/cmd/getignore.go @@ -37,7 +37,7 @@ import ( // getignoreCmd represents the getignore command var getignoreCmd = &cobra.Command{ - Use: "[language ...]", + Use: " [language ...]", Aliases: []string{"getignore"}, Example: "getignore python go visualstudiocode >> .gitignore", Short: "print gitignore template for a language", @@ -67,20 +67,12 @@ languages from the terminal. log.Fatalf(err.Error()) } - if err != nil { - return err - } - if output == "" { log.Warn("output is empty (probably not what you wanted?") } fmt.Println(output) - // if _, err := run(args); err != nil { - // return err - // } - return nil }, }