automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug with unrecognized options


From: Akim Demaille
Subject: Re: bug with unrecognized options
Date: 17 Jan 2002 21:12:34 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Tom" == Tom Tromey <address@hidden> 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  <address@hidden>

        * 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]