mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Merge pull request #1317 from r0ckarong/development
Fixed handling of `pihole -wild` help text
This commit is contained in:
commit
f6732a484e
@ -26,28 +26,26 @@ listAlt=""
|
|||||||
|
|
||||||
helpFunc() {
|
helpFunc() {
|
||||||
if [[ "${listMain}" == "${whitelist}" ]]; then
|
if [[ "${listMain}" == "${whitelist}" ]]; then
|
||||||
letter="w"
|
param="w"
|
||||||
word="white"
|
type="white"
|
||||||
|
elif [[ "${listMain}" == "${wildcardlist}" ]]; then
|
||||||
|
param="wild"
|
||||||
|
type="wildcard black"
|
||||||
else
|
else
|
||||||
letter="b"
|
param="b"
|
||||||
word="black"
|
type="black"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Usage: pihole -${letter} [options] <domain> <domain2 ...>
|
echo "Usage: pihole -${param} [options] <domain> <domain2 ...>
|
||||||
Example: 'pihole -${letter} site.com', or 'pihole -${letter} site1.com site2.com'
|
Example: 'pihole -${param} site.com', or 'pihole -${param} site1.com site2.com'
|
||||||
${word^}list one or more domains
|
${type^}list one or more domains
|
||||||
|
|
||||||
Options:"
|
Options:
|
||||||
|
-d, --delmode Remove domain(s) from the ${type}list
|
||||||
if [[ "${letter}" == "b" ]]; then
|
-nr, --noreload Update ${type}list without refreshing dnsmasq
|
||||||
echo " -wild, --wildcard Add wildcard entry to blacklist"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo " -d, --delmode Remove domain(s) from the ${word}list
|
|
||||||
-nr, --noreload Update ${word}list without refreshing dnsmasq
|
|
||||||
-q, --quiet Make output less verbose
|
-q, --quiet Make output less verbose
|
||||||
-h, --help Show this help dialog
|
-h, --help Show this help dialog
|
||||||
-l, --list Display all your ${word}listed domains"
|
-l, --list Display all your ${type}listed domains"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user