From 3cf3bdafd890ea25247f2bf9af14e775d8d1d148 Mon Sep 17 00:00:00 2001 From: sentriz Date: Tue, 11 May 2021 22:48:46 +0100 Subject: [PATCH] fix: show "gonic" not version in --help --- cmd/gonic/gonic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gonic/gonic.go b/cmd/gonic/gonic.go index ffd40441..3cb91163 100644 --- a/cmd/gonic/gonic.go +++ b/cmd/gonic/gonic.go @@ -28,7 +28,7 @@ const ( ) func main() { - set := flag.NewFlagSet(gonic.Version, flag.ExitOnError) + set := flag.NewFlagSet(gonic.Name, flag.ExitOnError) confListenAddr := set.String("listen-addr", "0.0.0.0:4747", "listen address (optional)") confMusicPath := set.String("music-path", "", "path to music") confPodcastPath := set.String("podcast-path", "", "path to podcasts")