优化掉落系统

This commit is contained in:
flswld committed 2023-11-16 21:35:51 +08:00
1 parent e9cacf064a
commit c352746496
30 files changed
+350 -204

No files matched your search

+3 -3
View File
@@ -9,15 +9,15 @@ import (
)
func DispatchCmd() *cobra.Command {
var cfg string
var configFile string
app.APPVERSION = VERSION
c := &cobra.Command{
Use: "dispatch",
Short: "dispatch server",
RunE: func(cmd *cobra.Command, args []string) error {
return app.Run(context.Background(), cfg)
return app.Run(context.Background(), configFile)
},
}
c.Flags().StringVar(&cfg, "config", "application.toml", "config file")
c.Flags().StringVar(&configFile, "config", "application.toml", "config file")
return c
}