diff --git a/diff-main.go b/diff-main.go index 72138ce1..d795c991 100644 --- a/diff-main.go +++ b/diff-main.go @@ -28,24 +28,33 @@ import ( "github.com/minio/minio-xl/pkg/probe" ) +// diff specific flags. +var ( + diffFlagHelp = cli.BoolFlag{ + Name: "help, h", + Usage: "Help of diff.", + } +) + // Compute differences between two files or folders. var diffCmd = cli.Command{ Name: "diff", Usage: "Compute differences between two folders.", 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 differ in contents are not noticed.", Action: mainDiff, + Flags: []cli.Flag{diffFlagHelp}, CustomHelpTemplate: `NAME: mc {{.Name}} - {{.Usage}} -DESCRIPTION: - {{.Description}} - USAGE: mc {{.Name}} [FLAGS] FIRST SECOND FLAGS: {{range .Flags}}{{.}} {{end}} +DESCRIPTION: + {{.Description}} + EXAMPLES: 1. Compare a local folder with a folder on Amazon S3 cloud storage. $ mc {{.Name}} ~/Photos https://s3.amazonaws.com/MyBucket/Photos