aboutsummaryrefslogtreecommitdiff
path: root/cmd/episodes.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 01:09:48 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 01:09:48 +0530
commit7473964721c349a7f41c6fcd48df14d570cee676 (patch)
treefcd0007b4688009f4635d1472393b60f11d309b1 /cmd/episodes.go
parente143dc8955de158365e193882cb1b881abaa2d94 (diff)
added --search-nsfw flag to search nsfw titles
Diffstat (limited to 'cmd/episodes.go')
-rw-r--r--cmd/episodes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/episodes.go b/cmd/episodes.go
index 96a28f0..59532cd 100644
--- a/cmd/episodes.go
+++ b/cmd/episodes.go
@@ -90,5 +90,6 @@ func init() {
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")
}