Skip to content

Commit 4c79ae8

Browse files
docs: -h msg fixed
1 parent 0916267 commit 4c79ae8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ go-watch-logs --file-path=my.log --match='HTTP/1.1" 50' --every=60
8888
http proxy for webhooks
8989
-test
9090
Quickly test paths or regex
91-
91+
# will test if the input matches the regex
9292
echo test123 | go-watch-logs --match=123 --test
93-
# will test if the input matches the regex
93+
# will test if the file paths are found and list them
9494
go-watch-logs --file-path=./ssl_access.*log --test
95-
# will test if the file paths are found and list them
9695

9796
-version
9897
```

main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,10 @@ func flags() {
265265
flag.IntVar(&f.Min, "min", 1, "on minimum num of matches, it should notify")
266266
flag.BoolVar(&f.Version, "version", false, "")
267267
flag.BoolVar(&f.Test, "test", false, `Quickly test paths or regex
268-
269-
echo test123 | go-watch-logs --match=123 --test
270268
# will test if the input matches the regex
271-
go-watch-logs --file-path=./ssl_access.*log --test
269+
echo test123 | go-watch-logs --match=123 --test
272270
# will test if the file paths are found and list them
271+
go-watch-logs --file-path=./ssl_access.*log --test
273272
`)
274273

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

0 commit comments

Comments
 (0)