Skip to content

Commit

Permalink
#133 CID rank merkle proofs. Merkle tree. Wiki home flag
Browse files Browse the repository at this point in the history
  • Loading branch information
arturalbov authored and hleb-albau committed Jan 3, 2019
1 parent 05bdb39 commit 7c746d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ const (
FlagChainId = "chain-id"
FlagAddress = "address"
FlagNode = "node"
FlagHome = "home"
)
3 changes: 2 additions & 1 deletion wiki/wiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ func main() {
cmd.Flags().String(client.FlagAddress, "", "Account to sign transactions")
cmd.Flags().String(client.FlagPassphrase, "", "Passphrase of account")
cmd.Flags().String(client.FlagNode, "127.0.0.1:26657", "Url of node communicate with")
cmd.Flags().String(client.FlagHome, homeDir+"/.cyberdcli", "Cyberd CLI home folder")

_ = viper.BindPFlag(client.FlagPassphrase, cmd.Flags().Lookup(client.FlagPassphrase))
_ = viper.BindPFlag(client.FlagAddress, cmd.Flags().Lookup(client.FlagAddress))
_ = viper.BindPFlag(client.FlagNode, cmd.Flags().Lookup(client.FlagNode))
viper.SetDefault("home", homeDir+"/.cyberdcli")
_ = viper.BindPFlag(client.FlagHome, cmd.Flags().Lookup(client.FlagHome))

if err := cmd.Execute(); err != nil {
fmt.Println(err)
Expand Down

0 comments on commit 7c746d9

Please sign in to comment.