Skip to content

Commit

Permalink
fix: rename metadata flag to add-metadata for put operations (#356)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored Jan 6, 2025
1 parent 1038b62 commit 86b8fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ var ioFlags = []cli.Flag{
Usage: "Force requests to be 'host' for host-style or 'path' for path-style lookup. Default will attempt autodetect based on remote host name.",
},
cli.StringSliceFlag{
Name: "metadata",
Usage: "Add user metada to all objects using the format <key>=<value>. Random value can be set with 'rand:%length'. Can be used multiple times. Example: --metadata foo=bar --metadata randomValue=rand:1024.",
Name: "add-metadata",
Usage: "Add user metadata to all objects using the format <key>=<value>. Random value can be set with 'rand:%length'. Can be used multiple times. Example: --add-metadata foo=bar --add-metadata randomValue=rand:1024.",
Hidden: true,
},
cli.StringSliceFlag{
Expand Down
2 changes: 1 addition & 1 deletion cli/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func putOpts(ctx *cli.Context) minio.PutObjectOptions {
PartSize: pSize,
}

for _, flag := range []string{"metadata", "tag"} {
for _, flag := range []string{"add-metadata", "tag"} {
values := make(map[string]string)

for _, v := range ctx.StringSlice(flag) {
Expand Down

0 comments on commit 86b8fc8

Please sign in to comment.