mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 09:36:00 +08:00
script
This commit is contained in:
@@ -23,7 +23,7 @@ func NewRootCmd() (rootCmd *RootCmd) {
|
||||
},
|
||||
}
|
||||
rootCmd.Command = c
|
||||
rootCmd.init()
|
||||
rootCmd.addConfFlag()
|
||||
return rootCmd
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ func (r *RootCmd) AddRpc(f func(port, prometheusPort int) error) {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *RootCmd) init() {
|
||||
func (r *RootCmd) addConfFlag() {
|
||||
r.Command.Flags().StringP(constant.FlagConf, "c", "", "Path to config file folder")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user