From 0661f537cf03996c3e6ebcaaea728691e13b70fd Mon Sep 17 00:00:00 2001 From: Bala FA Date: Mon, 17 Oct 2016 20:18:55 -0700 Subject: [PATCH] update help messages of all commands. (#1856) --- cmd/cat-main.go | 4 ++-- cmd/config-host-main.go | 2 +- cmd/config-main.go | 4 ++-- cmd/cp-main.go | 4 ++-- cmd/diff-main.go | 4 ++-- cmd/events-main.go | 4 ++-- cmd/flags.go | 6 +++--- cmd/ls-main.go | 2 +- cmd/main.go | 2 +- cmd/mb-main.go | 4 ++-- cmd/mirror-main.go | 4 ++-- cmd/pipe-main.go | 4 ++-- cmd/policy-main.go | 4 ++-- cmd/session-main.go | 4 ++-- cmd/share-download-main.go | 2 +- cmd/share-main.go | 2 +- cmd/share-upload-main.go | 2 +- cmd/update-main.go | 4 ++-- cmd/version-main.go | 4 ++-- cmd/watch-main.go | 4 ++-- 20 files changed, 35 insertions(+), 35 deletions(-) diff --git a/cmd/cat-main.go b/cmd/cat-main.go index 6106d4ec..5ba7fca4 100644 --- a/cmd/cat-main.go +++ b/cmd/cat-main.go @@ -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: diff --git a/cmd/config-host-main.go b/cmd/config-host-main.go index 2dac3ae0..c5a546a1 100644 --- a/cmd/config-host-main.go +++ b/cmd/config-host-main.go @@ -31,7 +31,7 @@ var ( configHostFlags = []cli.Flag{ cli.BoolFlag{ Name: "help, h", - Usage: "Help of config host", + Usage: "Show this help.", }, } ) diff --git a/cmd/config-main.go b/cmd/config-main.go index cca59e07..f91f6084 100644 --- a/cmd/config-main.go +++ b/cmd/config-main.go @@ -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{ diff --git a/cmd/cp-main.go b/cmd/cp-main.go index cbe45157..dfda2e45 100644 --- a/cmd/cp-main.go +++ b/cmd/cp-main.go @@ -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: diff --git a/cmd/diff-main.go b/cmd/diff-main.go index fc9bea91..d4745b0f 100644 --- a/cmd/diff-main.go +++ b/cmd/diff-main.go @@ -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...), diff --git a/cmd/events-main.go b/cmd/events-main.go index d31460ea..89221755 100644 --- a/cmd/events-main.go +++ b/cmd/events-main.go @@ -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{ diff --git a/cmd/flags.go b/cmd/flags.go index 475a5f98..0e56913d 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -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.", }, } diff --git a/cmd/ls-main.go b/cmd/ls-main.go index 05c0714e..a787a76a 100644 --- a/cmd/ls-main.go +++ b/cmd/ls-main.go @@ -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", diff --git a/cmd/main.go b/cmd/main.go index c89ea9d2..0c0361bd 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -38,7 +38,7 @@ var ( mcFlags = []cli.Flag{ cli.BoolFlag{ Name: "help, h", - Usage: "Show help.", + Usage: "Show this help.", }, } ) diff --git a/cmd/mb-main.go b/cmd/mb-main.go index b79d7f28..dea33f86 100644 --- a/cmd/mb-main.go +++ b/cmd/mb-main.go @@ -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: diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index 4c5fa70c..1a060cb0 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -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: diff --git a/cmd/pipe-main.go b/cmd/pipe-main.go index 0df4d8fe..42683cd8 100644 --- a/cmd/pipe-main.go +++ b/cmd/pipe-main.go @@ -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: diff --git a/cmd/policy-main.go b/cmd/policy-main.go index 8422ede7..6c4ea20a 100644 --- a/cmd/policy-main.go +++ b/cmd/policy-main.go @@ -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: diff --git a/cmd/session-main.go b/cmd/session-main.go index db2356bd..cb7d7572 100644 --- a/cmd/session-main.go +++ b/cmd/session-main.go @@ -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: diff --git a/cmd/share-download-main.go b/cmd/share-download-main.go index 4d7240d1..dd865186 100644 --- a/cmd/share-download-main.go +++ b/cmd/share-download-main.go @@ -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", diff --git a/cmd/share-main.go b/cmd/share-main.go index c5af0fcb..087a4648 100644 --- a/cmd/share-main.go +++ b/cmd/share-main.go @@ -29,7 +29,7 @@ var ( shareFlags = []cli.Flag{ cli.BoolFlag{ Name: "help, h", - Usage: "Help of share.", + Usage: "Show this help.", }, } ) diff --git a/cmd/share-upload-main.go b/cmd/share-upload-main.go index 1ad8916f..5eb433fd 100644 --- a/cmd/share-upload-main.go +++ b/cmd/share-upload-main.go @@ -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", diff --git a/cmd/update-main.go b/cmd/update-main.go index 5490fc1d..4ad7ceae 100644 --- a/cmd/update-main.go +++ b/cmd/update-main.go @@ -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: diff --git a/cmd/version-main.go b/cmd/version-main.go index 639561d9..4596bb31 100644 --- a/cmd/version-main.go +++ b/cmd/version-main.go @@ -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: diff --git a/cmd/watch-main.go b/cmd/watch-main.go index 973040f7..ea0ccfd7 100644 --- a/cmd/watch-main.go +++ b/cmd/watch-main.go @@ -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: