move flag parsing to main.go

This commit is contained in:
2026-06-02 18:01:59 +00:00
parent b6fd060daf
commit e97c9cb86d
2 changed files with 7 additions and 6 deletions
+1 -5
View File
@@ -2,12 +2,8 @@ package main
import (
app "access-manager-api/app"
"flag"
)
func main() {
configPath := flag.String("config", "config.json", "path to config.json file")
localDBPath := flag.String("localdb", "localdb.json", "path to localdb.json file")
flag.Parse()
app.Run(configPath, localDBPath)
app.Run()
}