1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

global flags are replaced with command speific flags, but still retain global behavior

This commit is contained in:
Anand Babu (AB) Periasamy
2015-11-21 14:20:00 -08:00
parent 6a2b4e959d
commit 269ac7b105
22 changed files with 33 additions and 72 deletions

View File

@@ -42,7 +42,7 @@ var diffCmd = cli.Command{
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},
Flags: append(globalFlags, diffFlagHelp),
CustomHelpTemplate: `NAME:
mc {{.Name}} - {{.Usage}}