From 3d7eb148f9a272119bc2a1b217a95b3d0107728a Mon Sep 17 00:00:00 2001 From: Sonic Lucas Maurice Date: Tue, 30 Jan 2024 01:15:21 -0500 Subject: [PATCH] Fixed flag parser... --- satisfactory-metadata/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/satisfactory-metadata/main.go b/satisfactory-metadata/main.go index 5d85109..4838bfc 100644 --- a/satisfactory-metadata/main.go +++ b/satisfactory-metadata/main.go @@ -21,7 +21,12 @@ var ( ) func main() { + // Get parameters + flag.Parse() + psqlconn := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", pgHost, pgPort, pgUser, pgPassword, pgDb) + fmt.Println(psqlconn) + db, err := sql.Open("postgres", psqlconn) if err != nil {