From: Akim Demaille Date: Mon, 21 Jan 2002 13:55:28 +0000 (+0000) Subject: * automake.in (&parse_arguments): Use a more GNUish error message X-Git-Tag: v1.10.2~1467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d2c15351a76bd84e8e4ab571088843a0770669d;p=platform%2Fupstream%2Fautomake.git * automake.in (&parse_arguments): Use a more GNUish error message on wrong options. --- diff --git a/ChangeLog b/ChangeLog index ab36566..91a1484 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-01-21 Akim Demaille + + * automake.in (&parse_arguments): Use a more GNUish error message + on wrong options. + 2002-01-20 Tom Tromey Fix for PR automake/231: diff --git a/automake.in b/automake.in index 41b1a2d..01c220f 100755 --- a/automake.in +++ b/automake.in @@ -1125,7 +1125,7 @@ sub parse_arguments () &set_strictness ('gnu'); use Getopt::Long; - Getopt::Long::config ("bundling"); + Getopt::Long::config ("bundling", "pass_through"); Getopt::Long::GetOptions ( 'version' => \&version, @@ -1150,6 +1150,13 @@ sub parse_arguments () 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