aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-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))
}