On Thu, Mar 03, 2005 at 04:40:05PM +0100, Danilo Piazzalunga wrote:
Hi all,
Currently, the po4a utilities print only a terse help message when invoked
with --help, while they print out the full help text when invoked with the
wrong number of parameters or when GetOptions fails.
Ups, good catch.
I guess this should be the other way around, that is:
* No parameters/wrong number of parameters: terse message only
* With --help: full help text
* With a wrong option, e.g. --foobar: still full help text
FYI, I attached the patch to change this behaviour.
I'd prefer you to use the more complete syntax of Pod::Usage (see its
manpage). What is important to me is that po4a --help returns the code 0 and
that scripts return non-nul on error.
For the verbosity, you are fully right.
Thanks, Mt.