This commit is contained in:
wangchuxiao 2023-03-08 18:19:56 +08:00
parent 4c4a8341c4
commit 1043142970

View File

@ -51,7 +51,7 @@ func (r *RootCmd) getPortFlag(cmd *cobra.Command) int {
}
func (r *RootCmd) AddPrometheusPortFlag() {
r.Command.Flags().StringP(constant.FlagPrometheusPort, "pp", "", "server prometheus listen port")
r.Command.Flags().String(constant.FlagPrometheusPort, "", "server prometheus listen port")
}
func (r *RootCmd) getPrometheusPortFlag(cmd *cobra.Command) int {