Skip to content

Commit

Permalink
fix: consider bech prefixes when using flags, fixed description
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed May 9, 2021
1 parent 2249086 commit 5053b97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ var (
var log = zerolog.New(zerolog.ConsoleWriter{Out: os.Stdout}).With().Timestamp().Logger()

var rootCmd = &cobra.Command{
Use: "missed-blocks-checker",
Long: "Tool to monitor missed blocks for Cosmos-chain validators",
Use: "cosmos-exporter",
Long: "Scrape the data about the validators set, specific validators or wallets in the Cosmos network.",
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
if ConfigPath == "" {
log.Trace().Msg("Config file not provided")
setBechPrefixes(cmd)
return nil
}

Expand Down

0 comments on commit 5053b97

Please sign in to comment.