aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/chapters.go1
-rw-r--r--cmd/episodes.go1
-rw-r--r--cmd/score.go1
-rw-r--r--cmd/search.go1
-rw-r--r--cmd/status.go1
-rw-r--r--cmd/version.go2
6 files changed, 6 insertions, 1 deletions
diff --git a/cmd/chapters.go b/cmd/chapters.go
index aa91a85..3107a20 100644
--- a/cmd/chapters.go
+++ b/cmd/chapters.go
@@ -88,5 +88,6 @@ func init() {
chaptersCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt")
chaptersCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load")
chaptersCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results")
+ chaptersCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results")
chaptersCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)")
}
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")
}
diff --git a/cmd/score.go b/cmd/score.go
index b9e87a4..c69a12a 100644
--- a/cmd/score.go
+++ b/cmd/score.go
@@ -148,6 +148,7 @@ func init() {
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(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in 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)")
}
diff --git a/cmd/search.go b/cmd/search.go
index 391919e..053cece 100644
--- a/cmd/search.go
+++ b/cmd/search.go
@@ -81,5 +81,6 @@ func init() {
searchCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode")
searchCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load")
searchCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results")
+ searchCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results")
searchCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)")
}
diff --git a/cmd/status.go b/cmd/status.go
index 3dc056f..e828219 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -127,6 +127,7 @@ func init() {
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(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in 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)")
}
diff --git a/cmd/version.go b/cmd/version.go
index 54391fc..e864597 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
)
-var version string = "v1.6.0"
+var version string = "v1.7.0"
var versionCmd = &cobra.Command {
Use: "version",