Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display watch help [FLAGS] before target #2220

Merged
merged 1 commit into from Jul 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions cmd/watch-main.go
Expand Up @@ -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",
Expand All @@ -64,7 +64,7 @@ var watchCmd = cli.Command{
{{.HelpName}} - {{.Usage}}

USAGE:
{{.HelpName}} PATH [FLAGS]
{{.HelpName}} [FLAGS] PATH
{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/minio-client-complete-guide.md
Expand Up @@ -604,15 +604,15 @@ 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.

```sh

USAGE:
mc watch [FLAGS]
mc watch [FLAGS] PATH

FLAGS:
--help, -h Help of watch.
Expand Down