diff --git a/cmd/persistenceCore/cmd/root.go b/cmd/persistenceCore/cmd/root.go index e4af4f98..f72e3cb3 100644 --- a/cmd/persistenceCore/cmd/root.go +++ b/cmd/persistenceCore/cmd/root.go @@ -60,7 +60,12 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { Use: "persistenceCore", Short: "Persistence Hub Node Daemon (server)", PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { - initClientCtx, err := config.ReadFromClientConfig(initClientCtx) + initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags()) + if err != nil { + return err + } + + initClientCtx, err = config.ReadFromClientConfig(initClientCtx) if err != nil { return err }