MAL download can now filter new ones only

This commit is contained in:
2018-11-13 16:22:24 +09:00
parent cb4a2f5b15
commit 24fa31171a
2 changed files with 28 additions and 4 deletions

View File

@ -10,11 +10,13 @@ import (
// Shell parameters
var objectType string
var objectID string
var newOnly bool
// Shell flags
func init() {
flag.StringVar(&objectType, "type", "all", "all | anime | character")
flag.StringVar(&objectID, "id", "", "ID of the notify.moe anime/character you want to refresh")
flag.BoolVar(&newOnly, "new", false, "Skip existing entries and only download new ones")
flag.Parse()
}