dorfylegends/analyze/analyze.go
Robert Janetzko f7b8217d32 parse plus
2022-04-15 13:27:51 +00:00

26 lines
343 B
Go

package main
import (
"flag"
"log"
"github.com/robertjanetzko/LegendsBrowser2/analyze/df"
)
func main() {
a := flag.String("a", "", "analyze a file")
g := flag.Bool("g", false, "generate model")
flag.Parse()
if len(*a) > 0 {
df.AnalyzeStructure(*a)
}
if *g {
err := df.Generate()
if err != nil {
log.Fatal(err)
}
}
}