Forgot to parse the cmd line!

This commit is contained in:
Hamcha 2019-06-14 00:07:39 +02:00
parent 514522950a
commit b7e1cacbd9
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -47,9 +47,11 @@ var funmap = template.FuncMap{
const HTMLrocCredits = "Converted to HTML using <a href=\"https://git.fromouter.space/mcg/htmlroc\">htmlroc</a>"
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)