From adffba663dbe8daebe311dc8f3ae5d40109cb2dd Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 17 Aug 2022 22:33:40 +0530 Subject: reading config file's defaults while searching --- cmd/login.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/login.go') diff --git a/cmd/login.go b/cmd/login.go index 71e4b5a..7127c47 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -19,8 +19,8 @@ along with this program. If not, see . package cmd import ( - "fmt" "os" + "fmt" "github.com/spf13/cobra" "github.com/MikunoNaka/macli/auth" ) @@ -61,8 +61,8 @@ var loginCmd = &cobra.Command { } func init() { - rootCmd.AddCommand(loginCmd) + rootCmd.AddCommand(loginCmd) loginCmd.Flags().StringP("authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)") loginCmd.Flags().StringP("client-id", "c", "", "MyAnimeList Client ID") - loginCmd.Flags().StringP("store-client-id", "s", "yes", "Save Client ID to keyring (yes/no) (Default: yes)") + loginCmd.Flags().StringP("store-client-id", "s", saveClientId, "Save Client ID to keyring (yes/no) (Default: yes)") } -- cgit v1.2.3