go-waku/waku.go

28 lines
423 B
Go

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