From 7b729689688d19e51e230ca39a3aed7fb0c0816e Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 3 May 2023 19:37:08 +0200 Subject: [PATCH] Update args Update args --- cli/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/chain.go b/cli/chain.go index a6ae521f5..c0d54fd63 100644 --- a/cli/chain.go +++ b/cli/chain.go @@ -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) }