Implement out directory

This commit is contained in:
2024-09-12 09:17:50 +02:00
parent 63d9121e56
commit ee7d56a82c
3 changed files with 8 additions and 7 deletions

View File

@@ -45,6 +45,7 @@ var fns = template.FuncMap{
}
func main() {
outdir := flag.String("o", ".", "Output directory")
flag.Parse()
files := flag.Args()
// if len(files) == 0 {
@@ -70,7 +71,7 @@ func main() {
return
}
outfile, err := class.GetOutFile()
outfile, err := class.GetOutFile(*outdir)
if err != nil {
Error.Printf("Error creating output file: %v", err)
return