Display watch help [FLAGS] before target (#2220)

This commit is contained in:
poornas
2017-07-18 10:39:21 -07:00
committed by Dee Koder
parent 8d7888eb4f
commit 4753e1e61b
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -37,7 +37,7 @@ var (
cli.StringFlag{
Name: "events",
Value: "put,delete,get",
Usage: "Filter specific type of events. Defaults to all events by default.",
Usage: "Filter specific types of events. Defaults to all events by default.",
},
cli.StringFlag{
Name: "prefix",
@@ -64,7 +64,7 @@ var watchCmd = cli.Command{
{{.HelpName}} - {{.Usage}}
USAGE:
{{.HelpName}} PATH [FLAGS]
{{.HelpName}} [FLAGS] PATH
{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
@@ -74,13 +74,13 @@ EXAMPLES:
$ {{.HelpName}} play/testbucket
2. Watch new events for a specific prefix "output/" on minio server.
$ {{.HelpName}} play/testbucket --prefix "output/"
$ {{.HelpName}} --prefix "output/" play/testbucket
3. Watch new events for a specific suffix ".jpg" on minio server.
$ {{.HelpName}} play/testbucket --suffix ".jpg"
$ {{.HelpName}} --suffix ".jpg" play/testbucket
4. Watch new events on a specific prefix and suffix on minio server.
$ {{.HelpName}} play/testbucket --suffix ".jpg" --prefix "photos/"
$ {{.HelpName}} --suffix ".jpg" --prefix "photos/" play/testbucket
5. Watch for events on local directory.
$ {{.HelpName}} /usr/share
+2 -2
View File
@@ -604,7 +604,7 @@ FLAGS:
```
<a name="watch"></a>
### Command `watch` - Watch for events object storage and filesystem.
### Command `watch` - Watch for files and object storage events.
``watch`` provides a convenient way to watch on various types of event notifications on object
storage and filesystem.
@@ -612,7 +612,7 @@ storage and filesystem.
```sh
USAGE:
mc watch [FLAGS]
mc watch [FLAGS] PATH
FLAGS:
--help, -h Help of watch.