From d497b4a9adfc7f0758bfe3cb3d0f5ba9adcff923 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 12 Jan 2025 17:17:23 +0800 Subject: Add missing flag.Parse() --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 7d6cf8f..378ac44 100644 --- a/main.go +++ b/main.go @@ -14,6 +14,8 @@ const VERSION = "lindenii-maild v0.0.0" func main() { config_path := flag.String("config", "/etc/lindenii/maild.scfg", "path to configuration file") + flag.Parse() + err := load_config(*config_path) if err != nil { panic(err) -- cgit v1.2.3