Expected Behaviour:
The help given by sudo pihole allow -h was expected to match the behaviour.
sudo pihole allow -h
Usage: pihole allow \[options\] <domain2 ...>
Example: 'pihole allow site.com', or 'pihole allow site1.com site2.com'
Allow one or more exact domains
Options:
remove, delete, -d Remove domain(s)
-q, --quiet Make output less verbose
-h, --help Show this help dialog
-l, --list Display domains
--comment "text" Add a comment to the domain. If adding multiple domains the same comment will be used for all
Actual Behaviour:
sudo pihole allow -l
/opt/pihole/api.sh: line 25: PI_HOLE_SCRIPT_DIR: readonly variable
Usage: pihole allow \[options\] <domain2 ...>
Example: 'pihole allow site.com', or 'pihole allow site1.com site2.com'
Allow one or more exact domains
Options:
remove, delete, -d Remove domain(s)
-q, --quiet Make output less verbose
-h, --help Show this help dialog
-l, --list Display domains
--comment "text" Add a comment to the domain. If adding multiple domains the same comment will be used for all