Skip to content

Commit

Permalink
docs: -h msg fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Dec 7, 2024
1 parent 0916267 commit 4c79ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ go-watch-logs --file-path=my.log --match='HTTP/1.1" 50' --every=60
http proxy for webhooks
-test
Quickly test paths or regex

# will test if the input matches the regex
echo test123 | go-watch-logs --match=123 --test
# will test if the input matches the regex
# will test if the file paths are found and list them
go-watch-logs --file-path=./ssl_access.*log --test
# will test if the file paths are found and list them

-version
```
Expand Down
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,10 @@ func flags() {
flag.IntVar(&f.Min, "min", 1, "on minimum num of matches, it should notify")
flag.BoolVar(&f.Version, "version", false, "")
flag.BoolVar(&f.Test, "test", false, `Quickly test paths or regex
echo test123 | go-watch-logs --match=123 --test
# will test if the input matches the regex
go-watch-logs --file-path=./ssl_access.*log --test
echo test123 | go-watch-logs --match=123 --test
# will test if the file paths are found and list them
go-watch-logs --file-path=./ssl_access.*log --test
`)

flag.StringVar(&f.Proxy, "proxy", "", "http proxy for webhooks")
Expand Down

0 comments on commit 4c79ae8

Please sign in to comment.