about summary refs log tree commit diff stats
path: root/cmd/searchix-web
diff options
context:
space:
mode:
authorAlan Pearce2024-06-09 12:23:52 +0200
committerAlan Pearce2024-06-09 12:23:52 +0200
commita495a673d2dda7b2aa9b11217d4662367a627517 (patch)
tree64986c5957ab6e174f724b8f599cd136903c64a4 /cmd/searchix-web
parente6651469b9e934cb4dc65f760277111a79e9ae2d (diff)
downloadsearchix-a495a673d2dda7b2aa9b11217d4662367a627517.tar.lz
searchix-a495a673d2dda7b2aa9b11217d4662367a627517.tar.zst
searchix-a495a673d2dda7b2aa9b11217d4662367a627517.zip
feat: enable configuration of flags as environment variables
Diffstat (limited to 'cmd/searchix-web')
-rw-r--r--cmd/searchix-web/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go
index 1eef5c3..c9ba2d6 100644
--- a/cmd/searchix-web/main.go
+++ b/cmd/searchix-web/main.go
@@ -9,6 +9,8 @@ import (
 	"os"
 	"os/signal"
 
+	"badc0de.net/pkg/flagutil"
+
 	"searchix"
 	"searchix/internal/config"
 )
@@ -27,7 +29,7 @@ var (
 )
 
 func main() {
-	flag.Parse()
+	flagutil.Parse()
 	if *version {
 		_, err := fmt.Fprintf(os.Stderr, "searchix %s\n", config.Version)
 		if err != nil {