Guess connection if none supplied.

This commit is contained in:
Jim McDonald
2022-03-24 09:46:11 +00:00
parent 6389b7dfbd
commit 84f682a0da
4 changed files with 58 additions and 8 deletions

View File

@@ -211,7 +211,7 @@ func init() {
if err := viper.BindPFlag("debug", RootCmd.PersistentFlags().Lookup("debug")); err != nil {
panic(err)
}
RootCmd.PersistentFlags().String("connection", "http://localhost:3500", "URL to an Ethereum 2 node's RET API endpoint")
RootCmd.PersistentFlags().String("connection", "", "URL to an Ethereum 2 node's RET API endpoint")
if err := viper.BindPFlag("connection", RootCmd.PersistentFlags().Lookup("connection")); err != nil {
panic(err)
}