This commit is contained in:
wangchuxiao
2023-03-09 14:54:05 +08:00
parent 3bcc696826
commit 82f499f942
10 changed files with 40 additions and 17 deletions
+2 -2
View File
@@ -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")
}