diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-30 20:15:05 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-30 20:15:05 +0530 |
commit | a3a7b41179d8abe9edc705db6b14063e95c459fa (patch) | |
tree | 935506bc5ddf9c6a28b45b619b370178f1dc13d4 /cmd/root.go | |
parent | 599139984e50d769bb97332ed5a327cf6d41ba37 (diff) |
added --query option to episodes and chapters command
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 6 |
1 files changed, 5 insertions, 1 deletions
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)") } |