diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 23:47:50 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-16 23:47:50 +0530 |
commit | d48bd9998de57d99d13c702b783d1c83cdd15629 (patch) | |
tree | e36b52d4327d28e6787a5065c4bd556bad076b41 /cmd/search.go | |
parent | c45cb6ebe10084d10f4fcf6189f26199f0913402 (diff) |
added help messages
Diffstat (limited to 'cmd/search.go')
-rw-r--r-- | cmd/search.go | 9 |
1 files changed, 6 insertions, 3 deletions
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 <anime-name>`\x1b[0m searches for an anime\n" + + "\t\x1b[33m`macli search -m <manga-name>`\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, " ") |