fix(cli): use flag value to database

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-08-14 10:16:16 -03:00
parent fcba1150fc
commit fbe0669b66

View File

@@ -28,7 +28,7 @@ func init() {
func main() {
log.Printf("Hello, world")
db, err := guilddb.NewSQLiteDB("file:./guild.db")
db, err := guilddb.NewSQLiteDB(*database_file)
if err != nil {
log.Printf("ERROR: failed to open database %s", err)
return