]> git.draconx.ca Git - gob-dx.git/commit
Make --help output go to standard output.
authorNick Bowler <nbowler@draconx.ca>
Tue, 11 Feb 2020 01:33:54 +0000 (20:33 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 14 Feb 2020 05:27:12 +0000 (00:27 -0500)
commitf415b094c750fb9f7cbfda0311bc5ba2024f385b
tree14406921458c1954f1ac6f9207f149eb254ed3b2
parenta81f0f5b213ff4bf7f273fd89c5b152176afa638
Make --help output go to standard output.

A program's help text, when requested by the user, is not an error
message.  Kind of silly to direct it to the standard error stream.

Adjust the program so that help text goes to standard output, which
is consistent with the GNU coding standards.

For actual errors, print a simplified usage message to standard
error instead of the full help text because otherwise the actual
error message is going to scroll right off the screen.
src/main.c
tests/options.at