Skip to content

Commit a0250de

Browse files
authored
Move checksum flag to all benches (#404)
It was only in PUT by accident.
1 parent fc415c8 commit a0250de

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cli/flags.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ var ioFlags = []cli.Flag{
285285
Name: "lookup",
286286
Usage: "Force requests to be 'host' for host-style or 'path' for path-style lookup. Default will attempt autodetect based on remote host name.",
287287
},
288+
cli.StringFlag{
289+
Name: "checksum",
290+
Usage: "Add checksum to uploaded object. Values: CRC64NVME, CRC32[-FO], CRC32C[-FO], SHA1 or SHA256. Requires server trailing headers (AWS, MinIO)",
291+
Value: "",
292+
},
288293
}
289294

290295
func getCommon(ctx *cli.Context, src func() generator.Source) bench.Common {

cli/put.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ var putFlags = []cli.Flag{
4747
Name: "post",
4848
Usage: "Use PostObject for upload. Will force single part upload",
4949
},
50-
cli.StringFlag{
51-
Name: "checksum",
52-
Usage: "Add checksum to uploaded object. Values: CRC64NVME, CRC32[-FO], CRC32C[-FO], SHA1 or SHA256. Requires server trailing headers (AWS, MinIO)",
53-
Value: "",
54-
},
5550
}
5651

5752
var PutCombinedFlags = combineFlags(globalFlags, ioFlags, putFlags, genFlags, benchFlags, analyzeFlags)

0 commit comments

Comments
 (0)