From 7297be61e4ee6b51bca0abd16535e31e05adede3 Mon Sep 17 00:00:00 2001 From: Adam Szkoda Date: Thu, 17 Oct 2024 12:57:09 +0200 Subject: [PATCH] Revert "Remove unneeded CLI option" This reverts commit 43ac3c04165a8f9ea8d1abfa15167a6cde554dc3. --- cmd/opts/opts.go | 1 + cmd/root.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/opts/opts.go b/cmd/opts/opts.go index c3928cf..0ed7633 100644 --- a/cmd/opts/opts.go +++ b/cmd/opts/opts.go @@ -2,6 +2,7 @@ package opts var ( LogLevel string + BeaconNode string BeaconChainAPI string MetricsPort string SlackURL string diff --git a/cmd/root.go b/cmd/root.go index 35a6c6a..f51496d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -123,6 +123,7 @@ func Execute() error { func init() { rootCmd.PersistentFlags().StringVarP(&opts.LogLevel, "log-level", "l", "info", "log level (error, warn, info, debug, trace)") + rootCmd.PersistentFlags().StringVar(&opts.BeaconNode, "beacon-node", "localhost:4000", "Prysm beacon node GRPC address") rootCmd.PersistentFlags().StringVar(&opts.BeaconChainAPI, "beacon-chain-api", "localhost:3500", "Beacon Chain API HTTP address") rootCmd.PersistentFlags().StringVar(&opts.MetricsPort, "metrics-port", "1337", "Metrics port to expose metrics for Prometheus") rootCmd.PersistentFlags().StringVar(&opts.SlackURL, "slack-url", "", "Slack Webhook URL")