From 4c79ae81b700349010824064066ea16f6ab7f534 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Sat, 7 Dec 2024 15:21:22 +0900 Subject: [PATCH] docs: -h msg fixed --- README.md | 5 ++--- main.go | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6cc302a..b1a4c38 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/main.go b/main.go index 6931525..cd5197f 100644 --- a/main.go +++ b/main.go @@ -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")