diff options
author | Alan Pearce | 2024-06-09 12:23:52 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-09 12:23:52 +0200 |
commit | a495a673d2dda7b2aa9b11217d4662367a627517 (patch) | |
tree | 64986c5957ab6e174f724b8f599cd136903c64a4 /cmd/searchix-web | |
parent | e6651469b9e934cb4dc65f760277111a79e9ae2d (diff) | |
download | searchix-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.go | 4 |
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 { |