[Po4a-devel]Usage and help messages

martin.quinson@loria.fr martin.quinson@loria.fr
Thu, 3 Mar 2005 21:20:45 +0100


--H88uUF932U8Oj0a6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 03, 2005 at 04:40:05PM +0100, Danilo Piazzalunga wrote:
> Hi all,
>=20
> Currently, the po4a utilities print only a terse help message when invoke=
d=20
> with --help, while they print out the full help text when invoked with th=
e=20
> wrong number of parameters or when GetOptions fails.

Ups, good catch.

> I guess this should be the other way around, that is:
>=20
>  * 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
>=20
> 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.

--H88uUF932U8Oj0a6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCJ3GdIiC/MeFF8zQRAhSEAJwKDkQ/wzTQymDIWuNH6F04cvocGACffxqP
LvU/hPxbKhWFLRMTzSBJr8E=
=3kLT
-----END PGP SIGNATURE-----

--H88uUF932U8Oj0a6--