Skip to content

Commit

Permalink
Revert "Remove unneeded CLI option"
Browse files Browse the repository at this point in the history
This reverts commit 43ac3c0.
  • Loading branch information
adaszko committed Oct 17, 2024
1 parent 355d895 commit 7297be6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/opts/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package opts

var (
LogLevel string
BeaconNode string
BeaconChainAPI string
MetricsPort string
SlackURL string
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7297be6

Please sign in to comment.