tendermint/cmd/main.go

40 lines
629 B
Go
Raw Normal View History

2014-11-07 23:27:03 -08:00
package main
import (
"flag"
"fmt"
"github.com/tendermint/tendermint/config"
)
func main() {
// Parse config flags
config.ParseFlags()
args := flag.Args()
if len(args) == 0 {
fmt.Println(`Tendermint
Commands:
daemon Run the tendermint node daemon
gen_account Generate new account keypair
gen_validator Generate new validator keypair
2014-12-23 17:20:52 -08:00
probe_upnp Test UPnP functionality
2014-11-07 23:27:03 -08:00
tendermint --help for command options`)
return
}
switch args[0] {
case "daemon":
daemon()
case "gen_account":
gen_account()
case "gen_validator":
gen_validator()
2014-12-23 17:20:52 -08:00
case "probe_upnp":
probe_upnp()
2014-11-07 23:27:03 -08:00
}
}