indent --help

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
I'm using GNU indent 2.2.9 on Fedora 8.

This is a pretty minor thing, and doesn't affect the use of indent for
GCC.  But, I thought I'd report it anyway.

Generally it is best if '--help' output goes to stdout (so that users
can "foo --help | more").

And, typically GNU programs exit with status 0 when --help or
--version is specified.  The rationale is, the program did what the
user wanted, so there was no error, so status 0 is correct.

indent --help prints some things to stderr and some to stdout, which
is strange.  And, the --help output is not very helpful.  Try
something like "cp --help" to see something that is quite helpful --
almost like a brief man page.

Also, both indent --help and indent --version exit with status 1.

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.