diff --git a/cli/flags.go b/cli/flags.go index b30b6a0..0a55ef5 100644 --- a/cli/flags.go +++ b/cli/flags.go @@ -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 =. 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 =. 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{ diff --git a/cli/put.go b/cli/put.go index c424014..acb5ecb 100644 --- a/cli/put.go +++ b/cli/put.go @@ -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) {