aboutsummaryrefslogtreecommitdiff
path: root/cmd/status.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/status.go
parent7e512b17f64b85390e189754081fb9a7994cd083 (diff)
added flags to modify prompt length and search results length
Diffstat (limited to 'cmd/status.go')
-rw-r--r--cmd/status.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/status.go b/cmd/status.go
index e412a96..3dc056f 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -124,4 +124,9 @@ func setMangaStatus(statusInput, searchInput string) {
func init() {
rootCmd.AddCommand(statusCmd)
statusCmd.Flags().StringP("set-value", "s", "", "status to be set")
+ statusCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt")
+ statusCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load")
+ statusCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results")
+ statusCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode")
+ statusCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)")
}