Skip to content

Commit cc661bc

Browse files
committed
fix app cli
1 parent 4eeca42 commit cc661bc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/persistenceCore/cmd/root.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,10 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
9292
initClientCtx, _ = config.ReadFromClientConfig(initClientCtx)
9393
autoCliOpts.ClientCtx = initClientCtx
9494

95+
initRootCmd(rootCmd, encodingConfig, tempApp)
9596
if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {
9697
panic(err)
9798
}
98-
initRootCmd(rootCmd, encodingConfig, tempApp)
99-
10099
return rootCmd, encodingConfig
101100
}
102101

0 commit comments

Comments
 (0)