Adding single_parse CLI command
This commit is contained in:
parent
d183ee5d85
commit
21f90d8c39
|
@ -27,7 +27,7 @@ var oldslug string
|
|||
var newseason int64
|
||||
|
||||
func InitCli() {
|
||||
flag.StringVar(&mode, "mode", "null", "Specifies the action to be done. Can be add_lt, merge_lps, change_poster, rename_lp")
|
||||
flag.StringVar(&mode, "mode", "null", "Specifies the action to be done. Can be add_lt, merge_lps, change_poster, rename_lp, single_parse")
|
||||
|
||||
// For add_lt
|
||||
flag.StringVar(&slug, "slug", "null", "Slug as it would be on gronkh.de")
|
||||
|
@ -66,6 +66,8 @@ func DoCli() {
|
|||
log.Fatalf("slug, name must be specified")
|
||||
}
|
||||
RenameLP()
|
||||
} else if mode == "single_parse" {
|
||||
ParseAll()
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue