aboutsummaryrefslogtreecommitdiff
path: root/cmd/episodes.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-03 22:55:45 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-03 22:55:45 +0530
commitd57c3ba06e1e661b650a07fd3dc66b2e20dd8daa (patch)
treeefb7bb80e55872410071332575c6e0286ae8618f /cmd/episodes.go
parent7e512b17f64b85390e189754081fb9a7994cd083 (diff)
added flags to modify prompt length and search results length
Diffstat (limited to 'cmd/episodes.go')
-rw-r--r--cmd/episodes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/episodes.go b/cmd/episodes.go
index df5c960..96a28f0 100644
--- a/cmd/episodes.go
+++ b/cmd/episodes.go
@@ -87,4 +87,8 @@ 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().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results")
}