From d7a820b1115a3765daecf05b13a8caa94f432e85 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 14 Aug 2022 21:06:32 +0530 Subject: reading auth token from flags --- cmd/chapters.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/chapters.go') diff --git a/cmd/chapters.go b/cmd/chapters.go index 6fc062a..2728beb 100644 --- a/cmd/chapters.go +++ b/cmd/chapters.go @@ -98,4 +98,5 @@ func init() { chaptersCmd.Flags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") chaptersCmd.Flags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") chaptersCmd.Flags().IntVarP(&entryId, "id", "i", -1, "Manually specify the ID of anime/manga (overrides search)") + chaptersCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") } -- cgit v1.2.3