diff --git a/cmd/rest-server/main.go b/cmd/rest-server/main.go index 5fb16de..6cd1f63 100644 --- a/cmd/rest-server/main.go +++ b/cmd/rest-server/main.go @@ -52,7 +52,7 @@ func init() { flags.BoolVar(&server.AppendOnly, "append-only", server.AppendOnly, "enable append only mode") flags.BoolVar(&server.PrivateRepos, "private-repos", server.PrivateRepos, "users can only access their private repo") flags.BoolVar(&server.Prometheus, "prometheus", server.Prometheus, "enable Prometheus metrics") - flags.BoolVar(&server.Prometheus, "prometheus-no-auth", server.PrometheusNoAuth, "disable auth for Prometheus /metrics endpoint") + flags.BoolVar(&server.PrometheusNoAuth, "prometheus-no-auth", server.PrometheusNoAuth, "disable auth for Prometheus /metrics endpoint") } var version = "0.10.0-dev"