update help messages of all commands. (#1856)

This commit is contained in:
Bala FA
2016-10-17 20:18:55 -07:00
committed by Harshavardhana
parent b737b2e7fc
commit 0661f537cf
20 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ var (
catFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of cat",
Usage: "Show this help.",
},
}
)
@@ -40,7 +40,7 @@ var (
// Display contents of a file.
var catCmd = cli.Command{
Name: "cat",
Usage: "Display contents of a file.",
Usage: "Display file and object contents.",
Action: mainCat,
Flags: append(catFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+1 -1
View File
@@ -31,7 +31,7 @@ var (
configHostFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of config host",
Usage: "Show this help.",
},
}
)
+2 -2
View File
@@ -33,14 +33,14 @@ var (
configFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of config.",
Usage: "Show this help.",
},
}
)
var configCmd = cli.Command{
Name: "config",
Usage: "Manage configuration file.",
Usage: "Manage mc configuration file.",
Action: mainConfig,
Flags: append(configFlags, globalFlags...),
Subcommands: []cli.Command{
+2 -2
View File
@@ -39,7 +39,7 @@ var (
cpFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of cp.",
Usage: "Show this help.",
},
cli.BoolFlag{
Name: "recursive, r",
@@ -51,7 +51,7 @@ var (
// Copy command.
var cpCmd = cli.Command{
Name: "cp",
Usage: "Copy one or more objects to a target.",
Usage: "Copy files and objects.",
Action: mainCopy,
Flags: append(cpFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+2 -2
View File
@@ -32,7 +32,7 @@ var (
diffFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of diff.",
Usage: "Show this help.",
},
}
)
@@ -40,7 +40,7 @@ var (
// Compute differences between two files or folders.
var diffCmd = cli.Command{
Name: "diff",
Usage: "Compute differences between two folders.",
Usage: "Show differences between two folders or buckets.",
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: append(diffFlags, globalFlags...),
+2 -2
View File
@@ -22,14 +22,14 @@ var (
eventsFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of events.",
Usage: "Show this help.",
},
}
)
var eventsCmd = cli.Command{
Name: "events",
Usage: "Manage bucket notification.",
Usage: "Manage object notifications.",
Action: mainEvents,
Flags: append(eventsFlags, globalFlags...),
Subcommands: []cli.Command{
+3 -3
View File
@@ -41,15 +41,15 @@ var globalFlags = []cli.Flag{
},
cli.BoolFlag{
Name: "json",
Usage: "Enable json formatted output.",
Usage: "Enable JSON formatted output.",
},
cli.BoolFlag{
Name: "debug",
Usage: "Enable debugging output.",
Usage: "Enable debug output.",
},
cli.BoolFlag{
Name: "insecure",
Usage: "Skip SSL certificate verification.",
Usage: "Disable SSL certificate verification.",
},
}
+1 -1
View File
@@ -29,7 +29,7 @@ var (
lsFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of ls.",
Usage: "Show this help.",
},
cli.BoolFlag{
Name: "recursive, r",
+1 -1
View File
@@ -38,7 +38,7 @@ var (
mcFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Show help.",
Usage: "Show this help.",
},
}
)
+2 -2
View File
@@ -29,7 +29,7 @@ var (
mbFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of mb.",
Usage: "Show this help.",
},
cli.StringFlag{
Name: "region",
@@ -42,7 +42,7 @@ var (
// make a bucket or folder.
var mbCmd = cli.Command{
Name: "mb",
Usage: "Make a bucket or folder.",
Usage: "Make a bucket or a folder.",
Action: mainMakeBucket,
Flags: append(mbFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+2 -2
View File
@@ -39,7 +39,7 @@ var (
mirrorFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of mirror.",
Usage: "Show this help.",
},
cli.BoolFlag{
Name: "force",
@@ -63,7 +63,7 @@ var (
// Mirror folders recursively from a single source to many destinations
var mirrorCmd = cli.Command{
Name: "mirror",
Usage: "Mirror folders recursively from a single source to single destination.",
Usage: "Mirror buckets and folders.",
Action: mainMirror,
Flags: append(mirrorFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+2 -2
View File
@@ -28,7 +28,7 @@ var (
pipeFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of pipe.",
Usage: "Show this help.",
},
}
)
@@ -36,7 +36,7 @@ var (
// Display contents of a file.
var pipeCmd = cli.Command{
Name: "pipe",
Usage: "Write contents of stdin to one target. When no target is specified, it writes to stdout.",
Usage: "Redirect STDIN to an object or file or STDOUT.",
Action: mainPipe,
Flags: append(pipeFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+2 -2
View File
@@ -29,7 +29,7 @@ var (
policyFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of policy.",
Usage: "Show this help.",
},
}
)
@@ -37,7 +37,7 @@ var (
// Set public policy
var policyCmd = cli.Command{
Name: "policy",
Usage: "Set public policy on bucket or prefix.",
Usage: "Manage anonymous access to objects.",
Action: mainPolicy,
Flags: append(policyFlags, globalFlags...),
CustomHelpTemplate: `Name:
+2 -2
View File
@@ -33,7 +33,7 @@ var (
sessionFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of session.",
Usage: "Show this help.",
},
}
)
@@ -41,7 +41,7 @@ var (
// Manage sessions for cp and mirror.
var sessionCmd = cli.Command{
Name: "session",
Usage: "Manage saved sessions of cp and mirror operations.",
Usage: "Manage saved sessions for cp and mirror commands.",
Action: mainSession,
Flags: append(sessionFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+1 -1
View File
@@ -27,7 +27,7 @@ var (
shareDownloadFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of share download",
Usage: "Show this help.",
},
cli.BoolFlag{
Name: "recursive, r",
+1 -1
View File
@@ -29,7 +29,7 @@ var (
shareFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of share.",
Usage: "Show this help.",
},
}
)
+1 -1
View File
@@ -29,7 +29,7 @@ var (
shareUploadFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of share download.",
Usage: "Show this help.",
},
cli.BoolFlag{
Name: "recursive, r",
+2 -2
View File
@@ -36,7 +36,7 @@ var (
updateFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help for update.",
Usage: "Show this help.",
},
cli.BoolFlag{
Name: "experimental, E",
@@ -48,7 +48,7 @@ var (
// Check for new software updates.
var updateCmd = cli.Command{
Name: "update",
Usage: "Check for a new software update.",
Usage: "Check for new mc update.",
Action: mainUpdate,
Flags: append(updateFlags, globalFlags...),
CustomHelpTemplate: `Name:
+2 -2
View File
@@ -30,7 +30,7 @@ var (
versionFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help for version.",
Usage: "Show this help.",
},
}
)
@@ -38,7 +38,7 @@ var (
// Print version.
var versionCmd = cli.Command{
Name: "version",
Usage: "Print version.",
Usage: "Print version info.",
Action: mainVersion,
Flags: append(versionFlags, globalFlags...),
CustomHelpTemplate: `NAME:
+2 -2
View File
@@ -36,7 +36,7 @@ var (
watchFlags = []cli.Flag{
cli.BoolFlag{
Name: "help, h",
Usage: "Help of watch.",
Usage: "Show this help.",
},
cli.StringFlag{
Name: "events",
@@ -60,7 +60,7 @@ var (
var watchCmd = cli.Command{
Name: "watch",
Usage: "Watch for events on object storage and filesystem.",
Usage: "Watch for files and objects events.",
Action: mainWatch,
Flags: append(watchFlags, globalFlags...),
CustomHelpTemplate: `NAME: