You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
629 B

  1. package main
  2. import (
  3. "flag"
  4. "fmt"
  5. "github.com/tendermint/tendermint/config"
  6. )
  7. func main() {
  8. // Parse config flags
  9. config.ParseFlags()
  10. args := flag.Args()
  11. if len(args) == 0 {
  12. fmt.Println(`Tendermint
  13. Commands:
  14. daemon Run the tendermint node daemon
  15. gen_account Generate new account keypair
  16. gen_validator Generate new validator keypair
  17. probe_upnp Test UPnP functionality
  18. tendermint --help for command options`)
  19. return
  20. }
  21. switch args[0] {
  22. case "daemon":
  23. daemon()
  24. case "gen_account":
  25. gen_account()
  26. case "gen_validator":
  27. gen_validator()
  28. case "probe_upnp":
  29. probe_upnp()
  30. }
  31. }