Skip to content

azcopy bench: "--put-md5" flag not recognized due to leading space in flag registration (benchmark.go:314) #3324

@nebhatnager

Description

@nebhatnager

Which version of the AzCopy was used?

azcopy_windows_amd64_10.30.0

Note: The version is visible when running AzCopy without any argument

azcopy version 10.30.0
INFO: azcopy.exe 10.30.0: A newer version 10.31.0 is available to download

Which platform are you using? (ex: Windows, Mac, Linux)

Windows

What command did you run?

azcopy bench"https://.blob.core.windows.net/?" --put-md5
and
azcopy bench"https://.blob.core.windows.net/?" -- put-md5

What problem was encountered?

The put-md5 argument does not work as expected.
unknown flag: --put-md5
and
wrong number of arguments, please refer to the help page on usage of this command

How can we reproduce the problem in the simplest way?

Attempt to use the --put-md5 argument or the -- put-md5

Have you found a mitigation/solution?

Line 314 has an space " " in the line. Remove the space.

benchCmd.PersistentFlags().BoolVar(&raw.putMd5, " put-md5", false, "Create an MD5 hash of each file, and save the hash as the Content-MD5 property of the destination blob/file. "+

Flags:
-- put-md5 Create an MD5 hash of each file, and save the hash as the Content-MD5 property of the destination blob/file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions