From d57c3ba06e1e661b650a07fd3dc66b2e20dd8daa Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Jul 2022 22:55:45 +0530 Subject: added flags to modify prompt length and search results length --- cmd/score.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/score.go') diff --git a/cmd/score.go b/cmd/score.go index 33c02c3..b9e87a4 100644 --- a/cmd/score.go +++ b/cmd/score.go @@ -145,4 +145,9 @@ func setMangaScore(scoreInput, searchInput string) { func init() { rootCmd.AddCommand(scoreCmd) scoreCmd.Flags().StringP("set-value", "s", "", "Score to be set") + scoreCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt") + scoreCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load") + scoreCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") + scoreCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") + scoreCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") } -- cgit v1.2.3