Fix offline deal import command arguments check
Why: * It is failing if the number of arguments is the expected one.
This commit is contained in:
parent
34e9e9fe34
commit
5e2a94e22f
@ -58,7 +58,7 @@ var dealsImportDataCmd = &cli.Command{
|
|||||||
|
|
||||||
ctx := lcli.DaemonContext(cctx)
|
ctx := lcli.DaemonContext(cctx)
|
||||||
|
|
||||||
if cctx.Args().Len() == 2 {
|
if cctx.Args().Len() < 2 {
|
||||||
return fmt.Errorf("must specify proposal CID and file path")
|
return fmt.Errorf("must specify proposal CID and file path")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user