From b7e1cacbd98744e63b7f91168554d3a42516ae86 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 14 Jun 2019 00:07:39 +0200 Subject: [PATCH] Forgot to parse the cmd line! --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 0c7746f..02ef658 100644 --- a/main.go +++ b/main.go @@ -47,9 +47,11 @@ var funmap = template.FuncMap{ const HTMLrocCredits = "Converted to HTML using htmlroc" func main() { + // Command line flags txtfile := flag.String("in", "rules.txt", "Path to rules.txt file") tplfile := flag.String("template", "template.html", "Path to template file") outname := flag.String("out", "out.html", "Output file") + flag.Parse() // Read template file tpl, err := template.New(*tplfile).Funcs(funmap).ParseFiles(*tplfile)