From a495a673d2dda7b2aa9b11217d4662367a627517 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 9 Jun 2024 12:23:52 +0200 Subject: feat: enable configuration of flags as environment variables --- cmd/searchix-web/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd') 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 { -- cgit 1.4.1