burlesque/config.go

19 lines
311 B
Go
Raw Normal View History

2014-07-10 19:19:39 +07:00
package main
import (
"flag"
)
2014-07-16 02:46:22 +07:00
var (
2014-09-09 12:20:40 +04:00
config struct {
storage string
port int
2014-07-10 19:19:39 +07:00
}
)
2014-09-09 12:20:40 +04:00
func setupConfig() {
flag.StringVar(&config.storage, "storage", "-", "Kyoto Cabinet storage path (e.g. burlesque.kch#dfunit=8#msiz=512M)")
flag.IntVar(&config.port, "port", 4401, "Server HTTP port")
2014-07-10 19:19:39 +07:00
flag.Parse()
}