mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-02 20:20:56 +00:00
Fix "pihole disable --help" and "pihole -l --help"
This commit is contained in:
parent
0e4473685b
commit
4eb7d2868c
4
pihole
4
pihole
@ -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…
Reference in New Issue
Block a user