aboutsummaryrefslogtreecommitdiff
path: root/cmd/list.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-17 22:42:12 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-17 22:42:12 +0530
commitccef1f9a0035a5b8e3494bcc22c09ad3acc49097 (patch)
treea20228902afdd0af64683f38fcf270bbc3fa1670 /cmd/list.go
parentadffba663dbe8daebe311dc8f3ae5d40109cb2dd (diff)
reading auth token from config file (if any)
Diffstat (limited to 'cmd/list.go')
-rw-r--r--cmd/list.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cmd/list.go b/cmd/list.go
index 6cb95fb..e6f7f8c 100644
--- a/cmd/list.go
+++ b/cmd/list.go
@@ -76,14 +76,14 @@ var listCmd = &cobra.Command{
}
func init() {
- rootCmd.AddCommand(listCmd)
- 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", "", 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")
+ rootCmd.AddCommand(listCmd)
+ 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", "", 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")
}