2021-03-18 23:21:45 +00:00
|
|
|
package main
|
|
|
|
|
2021-03-22 16:45:13 +00:00
|
|
|
import (
|
2021-10-03 21:45:07 +00:00
|
|
|
"os"
|
|
|
|
|
2021-03-22 16:45:13 +00:00
|
|
|
logging "github.com/ipfs/go-log"
|
2021-10-03 21:45:07 +00:00
|
|
|
"github.com/jessevdk/go-flags"
|
2021-04-13 18:54:06 +00:00
|
|
|
"github.com/status-im/go-waku/waku"
|
2021-03-22 16:45:13 +00:00
|
|
|
)
|
2021-03-18 23:21:45 +00:00
|
|
|
|
2021-10-03 21:45:07 +00:00
|
|
|
var options waku.Options
|
|
|
|
|
|
|
|
var parser = flags.NewParser(&options, flags.Default)
|
|
|
|
|
2021-03-18 23:21:45 +00:00
|
|
|
func main() {
|
2021-10-03 21:45:07 +00:00
|
|
|
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 {
|
2021-10-03 21:45:07 +00:00
|
|
|
os.Exit(1)
|
2021-03-22 16:45:13 +00:00
|
|
|
}
|
|
|
|
logging.SetAllLoggers(lvl)
|
|
|
|
|
2021-10-03 21:45:07 +00:00
|
|
|
waku.Execute(options)
|
2021-03-18 23:21:45 +00:00
|
|
|
}
|