Merge pull request #10812 from filecoin-project/fix/set-head-cmd
Change args check
This commit is contained in:
commit
093d350df3
@ -388,7 +388,7 @@ var ChainSetHeadCmd = &cli.Command{
|
||||
defer closer()
|
||||
ctx := ReqContext(cctx)
|
||||
|
||||
if cctx.NArg() != 1 {
|
||||
if !cctx.Bool("genesis") && !cctx.IsSet("epoch") && cctx.NArg() != 1 {
|
||||
return IncorrectNumArgs(cctx)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user