From 1613da91cab4dfa422f73c2615cd39da97fbda3f Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Wed, 11 Oct 2017 14:06:57 -0400 Subject: [PATCH] genesis account coin denom flag --- server/commands/init.go | 37 +++++++++++++++++++++---------------- server/commands/start.go | 4 ++-- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/server/commands/init.go b/server/commands/init.go index aaa5aba0b..0935463ec 100644 --- a/server/commands/init.go +++ b/server/commands/init.go @@ -18,24 +18,29 @@ import ( cmn "github.com/tendermint/tmlibs/common" ) -// InitCmd - node initialization command -var InitCmd = &cobra.Command{ - Use: "init [address]", - Short: "Initialize genesis files for a blockchain", - RunE: initCmd, -} - -//nolint - flags var ( + // InitCmd - node initialization command + InitCmd = GetInitCmd("mycoin") + + //nolint - flags FlagChainID = "chain-id" //TODO group with other flags or remove? is this already a flag here? + FlagDenom = "denom" //TODO group with other flags or remove? is this already a flag here? FlagOption = "option" FlagStatic = "static" ) -func init() { - InitCmd.Flags().String(FlagChainID, "test_chain_id", "Chain ID") - InitCmd.Flags().StringSliceP(FlagOption, "p", []string{}, "Genesis option in the format /