synology-pihole icon indicating copy to clipboard operation
synology-pihole copied to clipboard

--log command line option is positional

Open Kieren opened this issue 4 years ago • 0 comments

If the --log option is used with syno_pihole.sh and a log file is not specified then this option must be specified last after all other commands, parameters and options. Otherwise a parsing error occurs when the next command line argument is blindly assumed to be the name of the log file.

For example: syno_pihole.sh -l update will fail with a 'no command' error and error messages logged to ./update

Kieren avatar Jan 16 '21 06:01 Kieren