From f9e14ad61be9b56147d65b40dcf53ffc9cad41d2 Mon Sep 17 00:00:00 2001 From: Zach Ramsay Date: Wed, 18 Oct 2017 15:23:39 -0400 Subject: [PATCH] disable PersistenPreRun for counter/dummy --- cmd/abci-cli/abci-cli.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/abci-cli/abci-cli.go b/cmd/abci-cli/abci-cli.go index 93b00543b..11a64432b 100644 --- a/cmd/abci-cli/abci-cli.go +++ b/cmd/abci-cli/abci-cli.go @@ -15,7 +15,6 @@ import ( "github.com/tendermint/abci/example/dummy" "github.com/tendermint/abci/server" "github.com/tendermint/abci/types" - //"github.com/tendermint/abci/version" cmn "github.com/tendermint/tmlibs/common" "github.com/tendermint/tmlibs/log" @@ -70,6 +69,13 @@ var RootCmd = &cobra.Command{ Short: "", Long: "", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { + + switch cmd.Use { + // for the examples apps, don't pre-run + case "counter", "dummy": + return nil + } + if logger == nil { logger = log.NewFilter(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), log.AllowError()) }