diff --git a/simapp/simd/cmd/root_di.go b/simapp/simd/cmd/root_di.go index b3fda33997fd..6a04e9315519 100644 --- a/simapp/simd/cmd/root_di.go +++ b/simapp/simd/cmd/root_di.go @@ -5,6 +5,7 @@ package cmd import ( "os" + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node" "github.com/spf13/cobra" @@ -85,6 +86,7 @@ func NewRootCmd() *cobra.Command { initRootCmd(rootCmd, moduleManager) nodeCmds := nodeservice.NewNodeCommands() + autoCliOpts.ModuleOptions = make(map[string]*autocliv1.ModuleOptions) autoCliOpts.ModuleOptions[nodeCmds.Name()] = nodeCmds.AutoCLIOptions() if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil { diff --git a/simapp/v2/simdv2/cmd/root_di.go b/simapp/v2/simdv2/cmd/root_di.go index 285f2d9cc21d..2d107bf18fe2 100644 --- a/simapp/v2/simdv2/cmd/root_di.go +++ b/simapp/v2/simdv2/cmd/root_di.go @@ -3,6 +3,7 @@ package cmd import ( "os" + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" "github.com/spf13/cobra" "cosmossdk.io/client/v2/autocli" @@ -84,6 +85,7 @@ func NewRootCmd[T transaction.Tx]() *cobra.Command { initRootCmd[T](rootCmd, clientCtx.TxConfig, moduleManager) nodeCmds := nodeservice.NewNodeCommands() + autoCliOpts.ModuleOptions = make(map[string]*autocliv1.ModuleOptions) autoCliOpts.ModuleOptions[nodeCmds.Name()] = nodeCmds.AutoCLIOptions() if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {