From d882daeb018211288a10c586cb89c7451aeb9bb9 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 19 Jan 2025 20:15:56 +0100 Subject: [PATCH] Correct command line flag for ImgDir --- .air.toml | 2 +- cmd/backend/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.air.toml b/.air.toml index 5bb1f10..6fe017d 100644 --- a/.air.toml +++ b/.air.toml @@ -12,11 +12,11 @@ args_bin = [ "-domain localhost", "-feed tmp/cpolis.atom", "-firebase tmp/firebase.json", + "-images tmp/pics", "-img-width 256", "-link https://distrikt-ni-st.de", "-log tmp/cpolis.log", "-pdfs tmp/pdfs", - "-pics tmp/pics", "-port 8080", "-title 'Freimaurer Distrikt Niedersachsen und Sachsen-Anhalt'", "-web web", diff --git a/cmd/backend/config.go b/cmd/backend/config.go index 42d53a6..a35b6c7 100644 --- a/cmd/backend/config.go +++ b/cmd/backend/config.go @@ -113,7 +113,7 @@ func (c *Config) handleCliArgs() error { flag.StringVar(&c.Description, "desc", c.Description, "channel description") flag.StringVar(&c.Domain, "domain", c.Domain, "domain name") flag.StringVar(&c.FirebaseKey, "firebase", c.FirebaseKey, "Firebase service account key file") - flag.StringVar(&c.ImgDir, "pics", c.ImgDir, "pictures directory") + flag.StringVar(&c.ImgDir, "images", c.ImgDir, "images directory") flag.StringVar(&c.Link, "link", c.Link, "channel Link") flag.StringVar(&c.LogFile, "log", c.LogFile, "log file") flag.StringVar(&c.PDFDir, "pdfs", c.PDFDir, "pdf directory")