diff --git a/cli/delete.go b/cli/delete.go index afc5686..ba1cb97 100644 --- a/cli/delete.go +++ b/cli/delete.go @@ -95,8 +95,10 @@ func checkDeleteSyntax(ctx *cli.Context) { if ctx.Int("batch") < 1 { console.Fatal("batch size much be 1 or bigger") } - wantO := ctx.Int("batch") * ctx.Int("concurrent") * 4 - if ctx.Int("objects") < wantO { - console.Fatalf("Too few objects: With current --batch and --concurrent settings, at least %d objects should be used for a valid benchmark. Use --objects=%d", wantO, wantO) + if !ctx.Bool("list-existing") { + wantO := ctx.Int("batch") * ctx.Int("concurrent") * 4 + if ctx.Int("objects") < wantO { + console.Fatalf("Too few objects: With current --batch and --concurrent settings, at least %d objects should be used for a valid benchmark. Use --objects=%d", wantO, wantO) + } } }