~mcornick/linenoise-client

6017b4215d630b32feff2baf25858618c8802dce — Mark Cornick 6 days ago 3450fdf main
fix: no need to specify defaults twice
1 files changed, 6 insertions(+), 6 deletions(-)

M linenoise-client.go
M linenoise-client.go => linenoise-client.go +6 -6
@@ 55,12 55,12 @@ func check(e error) {

func main() {
	var (
		host   = "127.0.0.1"
		port   = 8080
		length = 16
		upper  = true
		lower  = true
		digit  = true
		host   string
		port   int
		length int
		upper  bool
		lower  bool
		digit  bool
	)
	flag.StringVar(&host, "host", "127.0.0.1", "Host to connect to")
	flag.IntVar(&port, "port", 8080, "Port to connect to")