aboutsummaryrefslogtreecommitdiff
path: root/cmd/list.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-17 22:33:40 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-17 22:33:40 +0530
commitadffba663dbe8daebe311dc8f3ae5d40109cb2dd (patch)
tree0a8aa46d9a297ea346d5092aafd10602df4f0930 /cmd/list.go
parentc413effd06e43abd197735915d136124324e24b1 (diff)
reading config file's defaults while searching
Diffstat (limited to 'cmd/list.go')
-rw-r--r--cmd/list.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/list.go b/cmd/list.go
index 2b9cc57..6cb95fb 100644
--- a/cmd/list.go
+++ b/cmd/list.go
@@ -80,7 +80,10 @@ func init() {
listCmd.Flags().StringP("status", "", "", "Status (leave blank for all)")
listCmd.Flags().StringP("user", "", "@me", "User (@me or blank for self)")
listCmd.Flags().StringP("sort", "", "list_score", "Sort the list")
- listCmd.Flags().BoolP("include-nsfw", "", false, "Include NSFW results")
+ listCmd.Flags().BoolP("include-nsfw", "", listIncludeNsfw, "Include NSFW results")
listCmd.Flags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode")
listCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)")
+ // TODO: implement below 2 flags
+ // listCmd.Flags().IntVarP(&mal.SearchLength, "list-length", "n", listLength, "Amount of list items to load (default: all)")
+ // listCmd.Flags().IntVarP(&mal.SearchOffset, "list-offset", "o", listOffset, "Offset for the list")
}