add --status-port flag to dbg

This commit is contained in:
qianyong 2021-01-27 19:30:20 +08:00
parent 032fccb292
commit c775696f44

View file

@ -108,6 +108,8 @@ func main() {
} }
rootCmd.AddCommand(confCmd) rootCmd.AddCommand(confCmd)
rootCmd.PersistentFlags().IntVar(&nginx.StatusPort, "status-port", 10246, `Port to use for the lua HTTP endpoint configuration.`)
if err := rootCmd.Execute(); err != nil { if err := rootCmd.Execute(); err != nil {
fmt.Println(err) fmt.Println(err)
os.Exit(1) os.Exit(1)