From 6d2fdb0e6b190e023687379d707a0a7334d0c7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lie=20Delhaie?= Date: Sun, 7 May 2023 23:10:29 +0200 Subject: [PATCH] fix args not parsed --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 8465a98..550b2e0 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,8 @@ func main() { contentPath := flag.String("content", "content.json", "Set the content configuration path, this file is encoded in JSON") serverPort := flag.Int("port", 8080, "Set the HTTP Server port") + flag.Parse() + if contentPath == nil { contentPath = new(string) *contentPath = "content.json"