From 177f15db2ea25c0e86652c6f524321896ead46ce Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Thu, 1 Oct 2020 00:06:38 +0100 Subject: [PATCH] Fix help for cp and head commands (#3418) --- cmd/cp-main.go | 4 ++-- cmd/head-main.go | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/cp-main.go b/cmd/cp-main.go index 9ca72ee1..8fd988cf 100644 --- a/cmd/cp-main.go +++ b/cmd/cp-main.go @@ -183,8 +183,8 @@ EXAMPLES: 18. Copy a text file to an object storage and disable multipart upload feature. {{.Prompt}} {{.HelpName}} --disable-multipart myobject.txt play/mybucket - 19. Pick versions while copying objects at a specific date/time in the past if the bucket versioning is enabled. - {{.Prompt}} {{.HelpName}} --rewind 10d myobject.txt play/mybucket + 19. Roll back 10 days in the past to copy the content of 'mybucket' + {{.Prompt}} {{.HelpName}} --rewind 10d -r play/mybucket/ /tmp/dest/ `, } diff --git a/cmd/head-main.go b/cmd/head-main.go index fc565ed8..90b9af3d 100644 --- a/cmd/head-main.go +++ b/cmd/head-main.go @@ -82,6 +82,9 @@ EXAMPLES: 3. Display only first line from server encrypted object on Amazon S3. In case the encryption key contains non-printable character like tab, pass the base64 encoded string as key. {{.Prompt}} {{.HelpName}} --encrypt-key "s3/json-data=MzJieXRlc2xvbmdzZWNyZXRrZQltdXN0YmVnaXZlbjE=" s3/json-data/population.json + + 4. Display the first lines of a specific object version. + {{.Prompt}} {{.HelpName}} --version-id "3ddac055-89a7-40fa-8cd3-530a5581b6b8" s3/json-data/population.json `, }