parse flags

This commit is contained in:
Your Name 2021-08-16 17:45:24 -04:00
parent dab99dae24
commit d27123dd24
2 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ func init() {
// Get database and socket running
dsn = flag.String("dsn", "", "Database connection string")
sockpath = flag.String("sock", "", "Unix socket path")
flag.Parse()
db, err := sql.Open("mysql", *dsn)
if err != nil {
log.Fatalf("sql.Open: %s", err.Error())

Binary file not shown.