aboutsummaryrefslogtreecommitdiff
path: root/cmd/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/search.go')
-rw-r--r--cmd/search.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/search.go b/cmd/search.go
index 0961ffe..8413804 100644
--- a/cmd/search.go
+++ b/cmd/search.go
@@ -49,6 +49,7 @@ var searchCmd = &cobra.Command {
mal.SearchLength = conf.SearchLength
mal.SearchOffset = conf.SearchOffset
mal.SearchNSFW = conf.SearchNSFW
+ mal.AutoSel = conf.AutoSel
ui.PromptLength = conf.PromptLength
mal.Init()
@@ -129,6 +130,7 @@ func init() {
searchCmd.Flags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)")
searchCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)")
+ searchCmd.Flags().IntP("auto-select", "S", 0, "Automatically select nth value")
searchCmd.Flags().IntP("prompt-length", "l", 5, "Length of select prompt")
searchCmd.Flags().IntP("search-length", "n", 10, "Amount of search results to load")
searchCmd.Flags().IntP("search-offset", "o", 0, "Offset for the search results")