Changing to if args.present
Changing to if args.present
This commit is contained in:
@@ -388,6 +388,10 @@ var ChainSetHeadCmd = &cli.Command{
|
||||
defer closer()
|
||||
ctx := ReqContext(cctx)
|
||||
|
||||
if cctx.Args().Present() {
|
||||
return IncorrectNumArgs(cctx)
|
||||
}
|
||||
|
||||
var ts *types.TipSet
|
||||
|
||||
if cctx.Bool("genesis") {
|
||||
|
||||
Reference in New Issue
Block a user