Add usage information for provingInfoCmd

This commit is contained in:
chunqizhi 2020-06-13 18:05:30 +08:00
parent a032bbe087
commit 6d36c030e0

View File

@ -16,6 +16,7 @@ import (
var provingCmd = &cli.Command{
Name: "proving",
Usage:"View proving information",
Subcommands: []*cli.Command{
provingInfoCmd,
provingDeadlinesCmd,
@ -24,6 +25,7 @@ var provingCmd = &cli.Command{
var provingInfoCmd = &cli.Command{
Name: "info",
Usage:"View current state information",
Action: func(cctx *cli.Context) error {
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil {
@ -146,6 +148,7 @@ func epochTime(curr, e abi.ChainEpoch) string {
var provingDeadlinesCmd = &cli.Command{
Name: "deadlines",
Usage:"View the current proving period deadlines information",
Action: func(cctx *cli.Context) error {
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil {