diff --git a/server/commands/init.go b/server/commands/init.go index aaa5aba0be..0935463ecd 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 /