From 3987f1405aa7a0faaff019cc3b55da4ded9ebbe5 Mon Sep 17 00:00:00 2001 From: ebozduman Date: Thu, 8 Feb 2018 02:59:50 -0800 Subject: [PATCH] Revises 'mc diff' command help menu (#2383) --- cmd/diff-main.go | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/cmd/diff-main.go b/cmd/diff-main.go index 9eb0a980..218ffc13 100644 --- a/cmd/diff-main.go +++ b/cmd/diff-main.go @@ -35,7 +35,7 @@ var ( // Compute differences between two files or folders. var diffCmd = cli.Command{ Name: "diff", - Usage: "List objects with size difference or missing between two folders or buckets.", + Usage: "List differences in object name, size, and date between folders.", Action: mainDiff, Before: setGlobalsFromContext, Flags: append(diffFlags, globalFlags...), @@ -49,21 +49,20 @@ FLAGS: {{range .VisibleFlags}}{{.}} {{end}} DESCRIPTION: - Diff only lists missing objects or objects with size differences. It *DOES NOT* compare contents. - i.e. objects of same name and size, but differing in content are not noticed. + Diff only calculates differences in object name, size and time. + It *DOES NOT* compare objects' contents. - Differences between source and destination are represented by mark notations with following meaning: - > - indicates file should be copied. - < - indicates file should be deleted. - ! - indicates file differs in size or type. +LEGEND: + > - object is only in source. + < - object is only in destination. + ! - newer object is in source. EXAMPLES: 1. Compare a local folder with a folder on Amazon S3 cloud storage. - $ {{.HelpName}} ~/Photos s3/MyBucket/Photos + $ {{.HelpName}} ~/Photos s3/mybucket/Photos - 2. Compare two different folders on a local filesystem. + 2. Compare two folders on a local filesystem. $ {{.HelpName}} ~/Photos /Media/Backup/Photos - `, }