aboutsummaryrefslogtreecommitdiff
path: root/cmd/episodes.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 01:15:00 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 01:15:00 +0530
commit9228897f84d898a7736f1f6df9b2aac005a89514 (patch)
tree473a2f50a42f4f3f7a04274d9c7d91f553b77e98 /cmd/episodes.go
parent7473964721c349a7f41c6fcd48df14d570cee676 (diff)
using Flags instead of PersistentFlags (useless use)
Diffstat (limited to 'cmd/episodes.go')
-rw-r--r--cmd/episodes.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/episodes.go b/cmd/episodes.go
index 59532cd..0746712 100644
--- a/cmd/episodes.go
+++ b/cmd/episodes.go
@@ -87,9 +87,9 @@ var episodesCmd = &cobra.Command{
func init() {
rootCmd.AddCommand(episodesCmd)
episodesCmd.Flags().StringP("set-value", "s", "", "Number of episodes")
- episodesCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt")
- episodesCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)")
- episodesCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load")
- episodesCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results")
- episodesCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results")
+ episodesCmd.Flags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt")
+ episodesCmd.Flags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)")
+ episodesCmd.Flags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load")
+ episodesCmd.Flags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results")
+ episodesCmd.Flags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results")
}