| 381 | } |
| 382 | |
| 383 | func usage() { |
| 384 | fmt.Fprintln(os.Stderr, "Usage:") |
| 385 | fmt.Fprintln(os.Stderr, " block validate [-prev PREVHEX] [-nosig] [-noprev] <BLOCK") |
| 386 | fmt.Fprintln(os.Stderr, " block hash <BLOCK_OR_HEADER") |
| 387 | fmt.Fprintln(os.Stderr, " block header [-pretty] <BLOCK") |
| 388 | fmt.Fprintln(os.Stderr, " block tx [-raw] [-pretty] INDEX <BLOCK") |
| 389 | fmt.Fprintln(os.Stderr, " block new [-quorum QUORUM] [-time TIME] PUBKEYHEX PUBKEYHEX ... >BLOCK") |
| 390 | fmt.Fprintln(os.Stderr, " block build [-time TIME] [-snapout FILE] TXFILE TXFILE ... <SNAPSHOT >BLOCK") |
| 391 | fmt.Fprintln(os.Stderr, " block sign -prev PREVHEX PRVHEX PRVHEX ... <BLOCK >BLOCK") |
| 392 | os.Exit(1) |
| 393 | } |