From a3a7b41179d8abe9edc705db6b14063e95c459fa Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 30 Jun 2022 20:15:05 +0530 Subject: added --query option to episodes and chapters command --- cmd/root.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmd/root.go') diff --git a/cmd/root.go b/cmd/root.go index 2ac48d6..085dafa 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,6 +24,9 @@ import ( "github.com/spf13/cobra" ) +var queryOnlyMode bool +var mangaMode bool + var rootCmd = &cobra.Command{ Use: "macli", Short: "macli - Unofficial CLI-Based MyAnimeList Client.", @@ -48,5 +51,6 @@ func Execute() { } func init() { - rootCmd.PersistentFlags().BoolP("manga", "m", false, "use manga mode") + rootCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") + rootCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") } -- cgit v1.2.3