[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: two $exit_code and a fatal
From: |
Alexandre Duret-Lutz |
Subject: |
Re: FYI: two $exit_code and a fatal |
Date: |
Wed, 10 Jul 2002 09:43:28 +0200 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) |
>>> "Tom" == Tom Tromey <address@hidden> writes:
>>>>>> "adl" == Alexandre Duret-Lutz <address@hidden> writes:
adl> * automake.in (usage, version): Honor $exit_code.
Tom> These are always supposed to exit with status 0 according to the GCS.
Ouch! I didn't know.
The point here is that
automake -Werror -Wnonexistant-category
will print a warning that `nonexistant-category' is unsupported,
then do the rest of it's work, and finally exit with 1 because
of -Werror.
So it seems to makes sense that
automake -Werror -Wnonexistant-category --help
exits with 1 too. Otherwise we'd be ignoring errors the
user requested.
Akim told me that one way to comply with the GCS this is to make
a first pass on the command line to handle the --version and
--help options, and then proceed with the other switches in a
second pass. I'll try to do that this evening.
--
Alexandre Duret-Lutz