diff --git a/server/commands/init.go b/server/commands/init.go index bb8617d080..e4a584440e 100644 --- a/server/commands/init.go +++ b/server/commands/init.go @@ -5,6 +5,7 @@ import ( "fmt" "io/ioutil" "os" + "strings" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -25,10 +26,12 @@ var InitCmd = &cobra.Command{ //nolint - flags var ( FlagChainID = "chain-id" //TODO group with other flags or remove? is this already a flag here? + FlagOption = "option" ) func init() { InitCmd.Flags().String(FlagChainID, "test_chain_id", "Chain ID") + InitCmd.Flags().StringSlice(FlagOption, []string{}, "Genesis option in the format /