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/user_info.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/user_info.go') diff --git a/cmd/user_info.go b/cmd/user_info.go index b83af8b..f737f89 100644 --- a/cmd/user_info.go +++ b/cmd/user_info.go @@ -52,4 +52,5 @@ Currently, MyAnimeList doesn't allow reading of other users' profiles. func init() { rootCmd.AddCommand(userInfoCmd) + userInfoCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") } -- cgit v1.2.3