about summary refs log tree commit diff
path: root/src/testsuite
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2019-12-31 16:34:23 +0100
committerAlexander Barton <alex@barton.de>2019-12-31 16:34:23 +0100
commit22cae1b5fc6779a1d74a5ca10ba6c8af45028e98 (patch)
tree3ece631d3c54800806d072fb0b28e101c1d97f9f /src/testsuite
parentfb5aa8f65213e97816fc16c2b794e030e0bd6da6 (diff)
downloadngircd-22cae1b5fc6779a1d74a5ca10ba6c8af45028e98.tar.gz
ngircd-22cae1b5fc6779a1d74a5ca10ba6c8af45028e98.zip
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>.
Diffstat (limited to 'src/testsuite')
0 files changed, 0 insertions, 0 deletions