diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-08 12:01:50 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-08 12:01:50 +0100 |
commit | 171da5128963aec5d51ffb6a50777eb3eb8c4407 (patch) | |
tree | 36cc4eb6e6668eb899e761e0df7ef5d57c88014e | |
parent | 04199eb1214efcf17ef0fd68d2d20b0401aa162f (diff) | |
download | alps-171da5128963aec5d51ffb6a50777eb3eb8c4407.tar.gz alps-171da5128963aec5d51ffb6a50777eb3eb8c4407.zip |
cmd/koushin: add -addr flag
-rw-r--r-- | cmd/koushin/main.go | 4 |
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)) } |