From 171da5128963aec5d51ffb6a50777eb3eb8c4407 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 8 Jan 2020 12:01:50 +0100 Subject: cmd/koushin: add -addr flag --- cmd/koushin/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/koushin/main.go b/cmd/koushin/main.go index eae340e..7b2c5a1 100644 --- a/cmd/koushin/main.go +++ b/cmd/koushin/main.go @@ -17,7 +17,9 @@ import ( func main() { var options koushin.Options + var addr string flag.StringVar(&options.Theme, "theme", "", "default theme") + flag.StringVar(&addr, "addr", ":1323", "listening address") flag.Usage = func() { fmt.Fprintf(flag.CommandLine.Output(), "usage: koushin [options...] [SMTP URL]\n") @@ -54,5 +56,5 @@ func main() { } }() - e.Logger.Fatal(e.Start(":1323")) + e.Logger.Fatal(e.Start(addr)) } -- cgit v1.2.3