From b64ae0bf471d71a8c1a7bc83bb2969a86fbe6429 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 28 Dec 2023 22:11:16 -0500 Subject: [PATCH] Rename address flag to addr --- pokerogue-server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pokerogue-server.go b/pokerogue-server.go index 473d274..12d3838 100644 --- a/pokerogue-server.go +++ b/pokerogue-server.go @@ -13,7 +13,7 @@ import ( func main() { proto := flag.String("proto", "tcp", "protocol for api to use (tcp, unix)") - address := flag.String("address", "0.0.0.0", "network address for server to listen on") + addr := flag.String("addr", "0.0.0.0", "network address for server to listen on") dbuser := flag.String("dbuser", "pokerogue", "database username") dbpass := flag.String("dbpass", "", "database password") @@ -29,16 +29,16 @@ func main() { } if *proto == "unix" { - os.Remove(*address) + os.Remove(*addr) } - listener, err := net.Listen(*proto, *address) + listener, err := net.Listen(*proto, *addr) if err != nil { log.Fatalf("failed to create net listener: %s", err) } if *proto == "unix" { - os.Chmod(*address, 0777) + os.Chmod(*addr, 0777) } // account