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.

33 lines
462 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. tendermint --help for command options`)
  17. return
  18. }
  19. switch args[0] {
  20. case "daemon":
  21. daemon()
  22. case "gen_account":
  23. gen_account()
  24. }
  25. }