Changing to if args.present
Changing to if args.present
This commit is contained in:
parent
f094e61b4a
commit
034888c58e
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user