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")