2022-04-14 16:58:28 +03:00
|
|
|
package main
|
2022-04-13 08:28:07 +03:00
|
|
|
|
|
|
|
import (
|
2022-04-14 17:06:17 +03:00
|
|
|
"flag"
|
2022-04-13 08:28:07 +03:00
|
|
|
|
2022-04-14 18:39:18 +03:00
|
|
|
"github.com/robertjanetzko/LegendsBrowser2/analyze/df"
|
2022-04-13 08:28:07 +03:00
|
|
|
)
|
|
|
|
|
2022-04-14 17:06:17 +03:00
|
|
|
func main() {
|
|
|
|
a := flag.String("a", "", "analyze a file")
|
|
|
|
g := flag.Bool("g", false, "generate model")
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
if len(*a) > 0 {
|
2022-04-14 18:39:18 +03:00
|
|
|
df.Analyze(*a)
|
2022-04-14 17:06:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if *g {
|
2022-04-14 18:39:18 +03:00
|
|
|
df.Generate()
|
2022-04-14 17:06:17 +03:00
|
|
|
}
|
|
|
|
}
|