aboutsummaryrefslogtreecommitdiff
path: root/cmd/koushin
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-01-08 12:01:50 +0100
committerSimon Ser <contact@emersion.fr>2020-01-08 12:01:50 +0100
commit171da5128963aec5d51ffb6a50777eb3eb8c4407 (patch)
tree36cc4eb6e6668eb899e761e0df7ef5d57c88014e /cmd/koushin
parent04199eb1214efcf17ef0fd68d2d20b0401aa162f (diff)
downloadalps-171da5128963aec5d51ffb6a50777eb3eb8c4407.tar.gz
alps-171da5128963aec5d51ffb6a50777eb3eb8c4407.zip
cmd/koushin: add -addr flag
Diffstat (limited to 'cmd/koushin')
-rw-r--r--cmd/koushin/main.go4
1 files changed, 3 insertions, 1 deletions
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...] <IMAP URL> [SMTP URL]\n")
@@ -54,5 +56,5 @@ func main() {
}
}()
- e.Logger.Fatal(e.Start(":1323"))
+ e.Logger.Fatal(e.Start(addr))
}