[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
indent --help
From: |
Tom Tromey |
Subject: |
indent --help |
Date: |
Thu, 20 Dec 2007 11:02:15 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- indent --help,
Tom Tromey <=