Add global flags to all commands and subcommands (#2605)

This commit is contained in:
Anis Elleuch authored and Harshavardhana committed 2016-09-13 21:18:30 -07:00
1 parent ff99392102
commit 3e284162d7
9 files changed
+62 -40

No files matched your search

+5
View File
@@ -97,12 +97,17 @@ var lockCmd = cli.Command{
Name: "lock",
Usage: "info about the locks in the node.",
Action: lockControl,
Flags: globalFlags,
CustomHelpTemplate: `NAME:
minio control {{.Name}} - {{.Usage}}
USAGE:
minio control {{.Name}} http://localhost:9000/
FLAGS:
{{range .Flags}}{{.}}
{{end}}
EAMPLES:
1. Get all the info about the blocked/held locks in the node:
$ minio control lock http://localhost:9000/