Update args
Update args
This commit is contained in:
parent
034888c58e
commit
7b72968968
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user