go-waku/waku.go

28 lines
423 B
Go
Raw Normal View History

package main
2021-03-22 16:45:13 +00:00
import (
"os"
2021-03-22 16:45:13 +00:00
logging "github.com/ipfs/go-log"
"github.com/jessevdk/go-flags"
"github.com/status-im/go-waku/waku"
2021-03-22 16:45:13 +00:00
)
var options waku.Options
var parser = flags.NewParser(&options, flags.Default)
func main() {
if _, err := parser.Parse(); err != nil {
os.Exit(1)
}
2021-03-22 16:45:13 +00:00
lvl, err := logging.LevelFromString("info")
if err != nil {
os.Exit(1)
2021-03-22 16:45:13 +00:00
}
logging.SetAllLoggers(lvl)
waku.Execute(options)
}