From e8582f774099928741351fcc961f407977c663e6 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 26 Aug 2024 19:44:42 +0200 Subject: [PATCH] Add pihole -h and autocompletion entry Signed-off-by: DL6ER --- advanced/bash-completion/pihole | 2 +- pihole | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/bash-completion/pihole b/advanced/bash-completion/pihole index 112e64ab..674eeea4 100644 --- a/advanced/bash-completion/pihole +++ b/advanced/bash-completion/pihole @@ -7,7 +7,7 @@ _pihole() { case "${prev}" in "pihole") - opts="allow allow-regex allow-wild deny checkout debug disable enable flush help logging query reconfigure regex restartdns status tail uninstall updateGravity updatePihole version wildcard arpflush" + opts="allow allow-regex allow-wild deny checkout debug disable enable flush help logging query reconfigure regex restartdns status tail uninstall updateGravity updatePihole version wildcard arpflush api" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) ;; "allow"|"deny"|"wildcard"|"regex"|"allow-regex"|"allow-wild") diff --git a/pihole b/pihole index 8a9aa297..ed4dd67a 100755 --- a/pihole +++ b/pihole @@ -484,6 +484,7 @@ Debugging Options: -t, tail [arg] View the live output of the Pi-hole log. Add an optional argument to filter the log (regular expressions are supported) + api Query the Pi-hole API at Options: