package main

import (
	"flag"
	"log"
	"os"

	"vrc_osc_go/internal/app"
)

func main() {
	var configPath string
	var mode string
	flag.StringVar(&configPath, "config", "config/config.toml", "path to config.toml")
	flag.StringVar(&mode, "mode", "", "generate-json or extract-log")
	flag.Parse()

	if err := app.Run(configPath, mode); err != nil {
		log.SetOutput(os.Stderr)
		log.Fatalf("vrc_osc_go: %v", err)
	}
}
