Fix "pihole disable --help" and "pihole -l --help"

pull/1468/head
WaLLy3K 7 years ago committed by GitHub
parent 0e4473685b
commit 4eb7d2868c

@ -164,7 +164,7 @@ restartDNS() {
} }
piholeEnable() { piholeEnable() {
if [[ "${2}" == "-h" ]]; then if [[ "${2}" == "-h" ]] || [[ "${2}" == "--help" ]]; then
echo "Usage: pihole disable [time] echo "Usage: pihole disable [time]
Example: 'pihole disable', or 'pihole disable 5m' Example: 'pihole disable', or 'pihole disable 5m'
Disable Pi-hole subsystems Disable Pi-hole subsystems
@ -205,7 +205,7 @@ Time:
piholeLogging() { piholeLogging() {
shift shift
if [[ "${1}" == "-h" ]]; then if [[ "${1}" == "-h" ]] || [[ "${1}" == "--help" ]]; then
echo "Usage: pihole logging [options] echo "Usage: pihole logging [options]
Example: 'pihole logging on' Example: 'pihole logging on'
Specify whether the Pi-hole log should be used Specify whether the Pi-hole log should be used

Loading…
Cancel
Save