This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: bug with unrecognized options
- From: Akim Demaille <akim at epita dot fr>
- To: tromey at redhat dot com
- Cc: Automake List <automake at gnu dot org>
- Date: 17 Jan 2002 21:12:34 +0100
- Subject: Re: bug with unrecognized options
- References: <87y9izduf7.fsf@creche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> I much prefer the cp output. For one thing it is more "GNUish".
Tom> Is it difficult to fix this?
I have already tried to fix this, but with no success. I didn't look
very hard though...
Index: ChangeLog
from Akim Demaille <akim@epita.fr>
* automake.in (&parse_arguments): Use a more GNUish error message
on wrong options.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1257
diff -u -u -r1.1257 automake.in
--- automake.in 2002/01/04 11:06:14 1.1257
+++ automake.in 2002/01/17 20:07:59
@@ -1121,7 +1121,7 @@
&set_strictness ('gnu');
use Getopt::Long;
- Getopt::Long::config ("bundling");
+ Getopt::Long::config ("bundling", "pass_through");
Getopt::Long::GetOptions
(
'version' => \&version,
@@ -1146,6 +1146,13 @@
foreach my $arg (@ARGV)
{
+ if ($arg =~ /^--/)
+ {
+ print STDERR "$0: unrecognized option `$arg'\n";
+ print STDERR "Try `$0 --help' for more information.\n";
+ exit (1);
+ }
+
# Handle $local:$input syntax. Note that we only examine the
# first ":" file to see if it is automake input; the rest are
# just taken verbatim. We still keep all the files around for