flag.go 455 B

1234567891011121314
  1. package flag
  2. import "flag"
  3. var StompUrl, BoardGenUrl, CpuProfile *string
  4. var Port *int
  5. func ParseFlags() {
  6. Port = flag.Int("port", 8080, "The port of the battlecamp-go-server")
  7. BoardGenUrl = flag.String("boardGen", "localhost:8081", "The url for the board region generator")
  8. StompUrl = flag.String("stompUrl", "localhost:61613", "The url for active mq stomp")
  9. CpuProfile = flag.String("cpuprofile", "", "write cpu profile to file")
  10. flag.Parse()
  11. }