From d48bd9998de57d99d13c702b783d1c83cdd15629 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 16 Jun 2022 23:47:50 +0530 Subject: added help messages --- cmd/search.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cmd/search.go') diff --git a/cmd/search.go b/cmd/search.go index da57862..2e485e3 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -27,9 +27,12 @@ import ( var searchCmd = &cobra.Command { Use: "search", Short: "Search for an anime/manga", - Long: ` --- help/description to be added later -`, + Long: "Search for an anime or a manga on MyAnimeList\n" + + "\n" + + "Example Usage:\n" + + "\t\x1b[33m`macli search `\x1b[0m searches for an anime\n" + + "\t\x1b[33m`macli search -m `\x1b[0m searches for a manga\n" + + "\t\x1b[33m`macli search`\x1b[0m interactively asks for an anime to search for (same for manga with -m/--manga flag)\n", Run: func(cmd *cobra.Command, args []string) { // read searchInput from command searchInput := strings.Join(args, " ") -- cgit v1.2.3