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)