show help flag for mc

This commit is contained in:
Anand Babu (AB) Periasamy
2015-11-16 12:52:54 -08:00
parent baadb0d77e
commit e1763a057b
15 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ import (
var (
accessFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of access",
Usage: "Help of access.",
}
)
+1 -1
View File
@@ -31,7 +31,7 @@ import (
var (
configAliasFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of config alias",
Usage: "Help of config alias.",
}
)
+1 -1
View File
@@ -32,7 +32,7 @@ import "github.com/minio/cli"
var (
configFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of config",
Usage: "Help of config.",
}
)
+1 -1
View File
@@ -37,7 +37,7 @@ import (
var (
cpFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of cp",
Usage: "Help of cp.",
}
)
+5
View File
@@ -28,6 +28,11 @@ var flags = []cli.Flag{}
var commandsTree = newTrie()
var (
helpFlag = cli.BoolFlag{
Name: "help",
Usage: "Help for mc.",
}
configFlag = cli.StringFlag{
Name: "config-folder, C",
Value: mustGetMcConfigDir(),
+1 -1
View File
@@ -33,7 +33,7 @@ var (
}
lsFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of ls",
Usage: "Help of ls.",
}
)
+1
View File
@@ -154,6 +154,7 @@ func registerApp() *cli.App {
registerCmd(versionCmd) // Print version.
// register all the flags (refer flags.go)
registerFlag(helpFlag) // Show help.
registerFlag(configFlag) // Path to configuration folder.
registerFlag(quietFlag) // Suppress chatty console output.
registerFlag(jsonFlag) // Enable json formatted output.
+1 -1
View File
@@ -29,7 +29,7 @@ import (
var (
mbFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of mb",
Usage: "Help of mb.",
}
)
+1 -1
View File
@@ -41,7 +41,7 @@ var (
}
mirrorFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of mirror",
Usage: "Help of mirror.",
}
)
+1 -1
View File
@@ -27,7 +27,7 @@ import (
var (
pipeFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of pipe",
Usage: "Help of pipe.",
}
)
+1 -1
View File
@@ -42,7 +42,7 @@ var (
rmFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of rm",
Usage: "Help of rm.",
}
)
+1 -1
View File
@@ -31,7 +31,7 @@ import (
var (
sessionFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of session",
Usage: "Help of session.",
}
)
+8
View File
@@ -24,11 +24,19 @@ import (
"github.com/minio/minio-xl/pkg/probe"
)
var (
shareFlagListHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of share list.",
}
)
// Share documents via URL.
var shareList = cli.Command{
Name: "list",
Usage: "List previously shared objects and folders.",
Action: mainShareList,
Flags: []cli.Flag{shareFlagListHelp},
CustomHelpTemplate: `NAME:
mc share {{.Name}} COMMAND - {{.Usage}}
+1 -1
View File
@@ -28,7 +28,7 @@ import (
var (
shareFlagHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of share",
Usage: "Help of share.",
}
)
+1 -1
View File
@@ -30,7 +30,7 @@ import (
var (
shareFlagUploadHelp = cli.BoolFlag{
Name: "help, h",
Usage: "Help of share download",
Usage: "Help of share download.",
}
)