parse flags
This commit is contained in:
parent
dab99dae24
commit
d27123dd24
1
main.go
1
main.go
|
@ -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())
|
||||
|
|
BIN
wp-metacache
BIN
wp-metacache
Binary file not shown.
Loading…
Reference in New Issue