1
0
Fork 0
burlesque/config.go

19 lines
311 B
Go
Raw Normal View History

2014-07-10 12:19:39 +00:00
package main
import (
"flag"
)
2014-07-15 19:46:22 +00:00
var (
2014-09-09 08:20:40 +00:00
config struct {
storage string
port int
2014-07-10 12:19:39 +00:00
}
)
2014-09-09 08:20:40 +00: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 12:19:39 +00:00
flag.Parse()
}