aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-12 17:17:23 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-12 17:17:23 +0800
commitd497b4a9adfc7f0758bfe3cb3d0f5ba9adcff923 (patch)
tree4e6780d066cf4d6afb51abbc937ebaeb2a892368 /main.go
parentAdd PostgreSQL connection (diff)
downloadmaild-d497b4a9adfc7f0758bfe3cb3d0f5ba9adcff923.tar.gz
maild-d497b4a9adfc7f0758bfe3cb3d0f5ba9adcff923.tar.zst
maild-d497b4a9adfc7f0758bfe3cb3d0f5ba9adcff923.zip
Add missing flag.Parse()
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
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)