From e9412d5b6481718d92e87ca2a7815596c345b3ce Mon Sep 17 00:00:00 2001 From: mg Date: Tue, 2 Nov 2021 18:47:26 +0100 Subject: [PATCH] added "--help" (#2) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/miniflux-filter/pulls/2 Co-authored-by: mg Co-committed-by: mg --- README.md | 2 +- filter.sh | 49 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 99cc7ed..745e29d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ### Introduction -``miniflux-filter`` is a small bash-script for [miniflux](https://miniflux.app) that marks certain articles as read, if the search conditions met. +``miniflux-filter`` is a small bash-script for [miniflux](https://miniflux.app) that marks certain articles as read, if the search conditions are met. ### Getting Started 1. create an [api-key](https://miniflux.app/docs/api.html#authentication) in miniflux diff --git a/filter.sh b/filter.sh index 44e6664..87c5bdd 100755 --- a/filter.sh +++ b/filter.sh @@ -14,6 +14,21 @@ MF_SLEEP="${MF_SLEEP:=30}" MF_DEBUG="${MF_[DEBUG]=0}" # Functions +function output_help { + cat <