mirror of https://github.com/status-im/go-waku.git
28 lines
433 B
Go
28 lines
433 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(options.LogLevel)
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
logging.SetAllLoggers(lvl)
|
|
|
|
waku.Execute(options)
|
|
}
|