Update args

Update args
This commit is contained in:
Phi 2023-05-03 19:37:08 +02:00
parent 034888c58e
commit 7b72968968

View File

@ -388,7 +388,7 @@ var ChainSetHeadCmd = &cli.Command{
defer closer()
ctx := ReqContext(cctx)
if cctx.Args().Present() {
if !cctx.Bool("genesis") && !cctx.IsSet("epoch") && cctx.NArg() != 1 {
return IncorrectNumArgs(cctx)
}