From d87acc2d1bd11255e7b883fb561a45fb82ccd6d8 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 28 Aug 2017 15:01:51 -0400 Subject: [PATCH] cmd: don't load config for version command. closes #620 --- cmd/tendermint/commands/root.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/tendermint/commands/root.go b/cmd/tendermint/commands/root.go index a8def87da..6cef5daa9 100644 --- a/cmd/tendermint/commands/root.go +++ b/cmd/tendermint/commands/root.go @@ -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