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/list.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/list.go') diff --git a/cmd/list.go b/cmd/list.go index b9c82d9..2b9cc57 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -81,5 +81,6 @@ func init() { listCmd.Flags().StringP("user", "", "@me", "User (@me or blank for self)") listCmd.Flags().StringP("sort", "", "list_score", "Sort the list") listCmd.Flags().BoolP("include-nsfw", "", false, "Include NSFW results") - listCmd.Flags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") + listCmd.Flags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") + listCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") } -- cgit v1.2.3