From 21f90d8c394492804a7918b82e78c5eea007410f Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Sun, 28 Feb 2016 22:25:21 +0100 Subject: [PATCH] Adding single_parse CLI command --- gparser/cli.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gparser/cli.go b/gparser/cli.go index bcd29e1..4eee3e8 100644 --- a/gparser/cli.go +++ b/gparser/cli.go @@ -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) }