Skip to content

Commit

Permalink
fix: read persistent command flags. (#122)
Browse files Browse the repository at this point in the history
read persistent command flags.
  • Loading branch information
puneet2019 authored Sep 6, 2022
1 parent 944b956 commit eb436ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/persistenceCore/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit eb436ab

Please sign in to comment.