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
1 changed files with 2 additions and 0 deletions

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)