From 8fb49796e37d2bf955d8ffa521f6bcda4f36b766 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 2 Oct 2022 20:46:50 +0530 Subject: Automatically select nth search result with --auto-select flag --- cmd/status.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/status.go') diff --git a/cmd/status.go b/cmd/status.go index 7c641e6..0c92249 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -48,6 +48,7 @@ var statusCmd = &cobra.Command{ } mal.SearchLength = conf.SearchLength mal.SearchOffset = conf.SearchOffset + mal.AutoSel = conf.AutoSel mal.SearchNSFW = conf.SearchNSFW ui.PromptLength = conf.PromptLength mal.Init() @@ -151,6 +152,7 @@ func init() { statusCmd.Flags().IntVarP(&entryId, "id", "i", -1, "Manually specify the ID of anime/manga (overrides search)") statusCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") + statusCmd.Flags().IntP("auto-select", "S", 0, "Automatically select nth value") statusCmd.Flags().IntP("prompt-length", "l", 5, "Length of select prompt") statusCmd.Flags().IntP("search-length", "n", 10, "Amount of search results to load") statusCmd.Flags().IntP("search-offset", "o", 0, "Offset for the search results") -- cgit v1.2.3