diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-08-14 21:06:32 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-08-14 21:06:32 +0530 |
commit | d7a820b1115a3765daecf05b13a8caa94f432e85 (patch) | |
tree | 430bb067432e61baf5982bfb68b3463fd6f0f8c5 /cmd/seasonals.go | |
parent | 1ae40030b32f9ab70fdc9a06161b32632168597f (diff) |
reading auth token from flags
Diffstat (limited to 'cmd/seasonals.go')
-rw-r--r-- | cmd/seasonals.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/seasonals.go b/cmd/seasonals.go index 7169488..7fd4cde 100644 --- a/cmd/seasonals.go +++ b/cmd/seasonals.go @@ -60,12 +60,11 @@ func init() { rootCmd.AddCommand(seasonalsCmd) seasonalsCmd.Flags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt") seasonalsCmd.Flags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") - seasonalsCmd.Flags().IntVarP(&mal.SearchLength, "results-length", "n", 10, "Amount of results to load") seasonalsCmd.Flags().BoolVarP(&mal.SearchNSFW, "include-nsfw", "", false, "Include NSFW-rated items in results") seasonalsCmd.Flags().IntVarP(&mal.SearchOffset, "results-offset", "o", 0, "Offset for the results") - seasonalsCmd.Flags().StringP("sort", "", "anime_num_list_users", "sort") seasonalsCmd.Flags().StringP("season", "", "", "") seasonalsCmd.Flags().IntP("year", "", 0, "") + seasonalsCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") } |