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:
Pedro Costa 2020-03-31 19:18:13 +01:00
parent 34e9e9fe34
commit 5e2a94e22f

View File

@ -58,7 +58,7 @@ var dealsImportDataCmd = &cli.Command{
ctx := lcli.DaemonContext(cctx)
if cctx.Args().Len() == 2 {
if cctx.Args().Len() < 2 {
return fmt.Errorf("must specify proposal CID and file path")
}