From f71c83305de84358b20aa7fd59b91807d7d9cfa9 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Wed, 11 Oct 2017 21:44:33 -0400 Subject: [PATCH] GetInitCmd takes app options --- server/commands/init.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/commands/init.go b/server/commands/init.go index 0935463ecd8d..b5ffebf78e63 100644 --- a/server/commands/init.go +++ b/server/commands/init.go @@ -20,7 +20,7 @@ import ( var ( // InitCmd - node initialization command - InitCmd = GetInitCmd("mycoin") + InitCmd = GetInitCmd("mycoin", []string{}) //nolint - flags FlagChainID = "chain-id" //TODO group with other flags or remove? is this already a flag here? @@ -30,7 +30,7 @@ var ( ) // GetInitCmd - get the node initialization command, with a custom genesis account denom -func GetInitCmd(defaultDenom string) *cobra.Command { +func GetInitCmd(defaultDenom string, options []string) *cobra.Command { initCmd := &cobra.Command{ Use: "init [address]", Short: "Initialize genesis files for a blockchain", @@ -38,7 +38,7 @@ func GetInitCmd(defaultDenom string) *cobra.Command { } initCmd.Flags().String(FlagChainID, "test_chain_id", "Chain ID") initCmd.Flags().String(FlagDenom, defaultDenom, "Coin denomination for genesis account") - initCmd.Flags().StringSliceP(FlagOption, "p", []string{}, "Genesis option in the format /