Branch: refs/heads/master Home: https://github.com/ngircd/ngircd Commit: 22cae1b5fc6779a1d74a5ca10ba6c8af45028e98 https://github.com/ngircd/ngircd/commit/22cae1b5fc6779a1d74a5ca10ba6c8af4502... Author: Alexander Barton alex@barton.de Date: 2019-12-31 (Tue, 31 Dec 2019)
Changed paths: M src/ngircd/ngircd.c
Log Message: ----------- Enhance handling of command line errors, and "--help" & "--version"
Return with exit code 0 ("no error") when "--help" or "--version" was used (this resulted in exit code 1, "error" before).
And exit with code 2 ("command line error") for all invalid command line options, and show the error message on stderr (message was printed to stdout before, and exit code was 1, "generic error").
This new behaviour is more in line with the GNU "coding standards", see https://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html.