From 6f58d58cae7ab35a523c39e268ecac2e562d16a1 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 22 Jul 2019 22:26:27 +0200 Subject: [PATCH] Add --whitewild to help texts and man pages. Signed-off-by: DL6ER --- advanced/Scripts/list.sh | 11 +++++++---- manpages/pihole.8 | 14 ++++++++++++-- pihole | 3 ++- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index 0183a9e2..f0cf4701 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -32,15 +32,18 @@ helpFunc() { if [[ "${listType}" == "whitelist" ]]; then param="w" type="whitelist" - elif [[ "${listType}" == "regex_blacklist" && "${wildcard}" == true ]]; then - param="-wild" - type="wildcard blacklist" elif [[ "${listType}" == "regex_blacklist" ]]; then param="-regex" type="regex blacklist filter" - elif [[ "${listType}" == "regex_blacklist" ]]; then + elif [[ "${listType}" == "regex_blacklist" && "${wildcard}" == true ]]; then + param="-wild" + type="wildcard blacklist" + elif [[ "${listType}" == "regex_whitelist" ]]; then param="-whiteregex" type="regex whitelist filter" + elif [[ "${listType}" == "regex_whitelist" && "${wildcard}" == true ]]; then + param="-whitewild" + type="wildcard whitelist" else param="b" type="blacklist" diff --git a/manpages/pihole.8 b/manpages/pihole.8 index 065280c7..11923392 100644 --- a/manpages/pihole.8 +++ b/manpages/pihole.8 @@ -66,14 +66,24 @@ Available commands and options: Adds or removes specified domain or domains to the blacklist .br +\fB--regex, regex\fR [options] [ ] +.br + Add or removes specified regex filter to the regex blacklist +.br + +\fB--whiteregex\fR [options] [ ] +.br + Add or removes specified regex filter to the regex whitelist +.br + \fB--wild, wildcard\fR [options] [ ] .br Add or removes specified domain to the wildcard blacklist .br -\fB--regex, regex\fR [options] [ ] +\fB--whitewild\fR [options] [ ] .br - Add or removes specified regex filter to the regex blacklist + Add or removes specified domain to the wildcard whitelist .br (Whitelist/Blacklist manipulation options): diff --git a/pihole b/pihole index b3260d83..5d373a47 100755 --- a/pihole +++ b/pihole @@ -375,9 +375,10 @@ Add '-h' after specific commands for more information on usage Whitelist/Blacklist Options: -w, whitelist Whitelist domain(s) -b, blacklist Blacklist domain(s) - --wild, wildcard Wildcard blacklist domain(s) --regex, regex Regex blacklist domains(s) --whiteregex Regex whitelist domains(s) + --wild, wildcard Wildcard blacklist domain(s) + --whitewild Wildcard whitelist domain(s) Add '-h' for more info on whitelist/blacklist usage Debugging Options: