Merge PR #3524: fix keys add flow to show seed by default

This commit is contained in:
Alexander Bezobchuk
2019-02-06 14:20:36 -08:00
committed by Jack Zampolin
parent 81ba3cf531
commit 17c84ab34a
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -14,12 +14,13 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keys"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/go-bip39"
"github.com/gorilla/mux"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/cosmos/go-bip39"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/multisig"
"github.com/tendermint/tendermint/libs/cli"
@@ -97,7 +98,7 @@ func runAddCmd(cmd *cobra.Command, args []string) error {
name := args[0]
interactive := viper.GetBool(flagInteractive)
showMnemonic := viper.GetBool(flagNoBackup)
showMnemonic := !viper.GetBool(flagNoBackup)
if viper.GetBool(flagDryRun) {
// we throw this away, so don't enforce args,