Browse Source

cmd: don't load config for version command. closes #620

pull/623/head
Ethan Buchman 7 years ago
parent
commit
d87acc2d1b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cmd/tendermint/commands/root.go

+ 3
- 0
cmd/tendermint/commands/root.go View File

@ -38,6 +38,9 @@ var RootCmd = &cobra.Command{
Use: "tendermint",
Short: "Tendermint Core (BFT Consensus) in Go",
PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) {
if cmd.Name() == versionCmd.Name() {
return nil
}
config, err = ParseConfig()
if err != nil {
return err


Loading…
Cancel
Save