Rename address flag as bei

This commit is contained in:
Trevor Slocum 2023-12-23 13:05:01 -08:00
parent b3664645e2
commit 12f4416eaf
3 changed files with 7 additions and 7 deletions

View file

@ -9,9 +9,9 @@ import (
)
func main() {
var address string
var beiAddress string
var pips bool
flag.StringVar(&address, "address", "", "Listen for BEI connections on specified address (TCP)")
flag.StringVar(&beiAddress, "bei", "", "Listen for BEI connections on specified address (TCP)")
flag.BoolVar(&pips, "pips", false, "Print table of pseudopip values")
flag.BoolVar(&tabula.Verbose, "verbose", false, "Print state of each request")
flag.Parse()
@ -25,9 +25,9 @@ func main() {
return
}
if address != "" {
if beiAddress != "" {
s := tabula.NewBEIServer()
s.Listen(address)
s.Listen(beiAddress)
}
//b := tabula.Board{0, 0, 0, 0, 0, -1, 8, 0, 4, 0, 0, 0, 0, 0, -1, -1, 0, -1, -1, -1, 1, -2, -2, -3, -2, 0, 2, 0, 0, 0, 0, 4, 1, 1, 0}

2
go.mod
View file

@ -2,4 +2,4 @@ module code.rocket9labs.com/tslocum/tabula
go 1.17
require code.rocket9labs.com/tslocum/bei v0.0.0-20231222205835-c070d7c7d5f8
require code.rocket9labs.com/tslocum/bei v0.0.0-20231223213316-ef6cb993c773

4
go.sum
View file

@ -1,2 +1,2 @@
code.rocket9labs.com/tslocum/bei v0.0.0-20231222205835-c070d7c7d5f8 h1:QefJxcMg2aneCZuoHPpnDOTsing1mehImilbyyT3SwU=
code.rocket9labs.com/tslocum/bei v0.0.0-20231222205835-c070d7c7d5f8/go.mod h1:tS60/VNAJphKvDBkSLQhKALa15msIAuWWfEKNc4oFZc=
code.rocket9labs.com/tslocum/bei v0.0.0-20231223213316-ef6cb993c773 h1:cu3FKYfk5WQcuxMXrqghHAmriyFiRCZ/8aUqIKI9yLU=
code.rocket9labs.com/tslocum/bei v0.0.0-20231223213316-ef6cb993c773/go.mod h1:tS60/VNAJphKvDBkSLQhKALa15msIAuWWfEKNc4oFZc=