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/episodes.go | |
parent | 1ae40030b32f9ab70fdc9a06161b32632168597f (diff) |
reading auth token from flags
Diffstat (limited to 'cmd/episodes.go')
-rw-r--r-- | cmd/episodes.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/episodes.go b/cmd/episodes.go index 59fa576..e760eff 100644 --- a/cmd/episodes.go +++ b/cmd/episodes.go @@ -98,4 +98,5 @@ func init() { episodesCmd.Flags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") episodesCmd.Flags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") episodesCmd.Flags().IntVarP(&entryId, "id", "i", -1, "Manually specify the ID of anime/manga (overrides search)") + episodesCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") } |