summaryrefslogtreecommitdiff
path: root/aclocal.in
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-05-02 00:13:10 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-05-02 11:16:57 +0200
commit180158114544e2bf0c11c36f373c28331d0a9ee3 (patch)
treeef759f366ea400e49bb40ac8aee507baa6aef007 /aclocal.in
parente7745eaaac1a5d432f3b39731fb4cd89675432fb (diff)
downloadautomake-180158114544e2bf0c11c36f373c28331d0a9ee3.tar.gz
aclocal: error out again on unrecognized arguments
Starting from commit v1.11-662-g52246cc of 2102-02-18, "cmdline parsing: move into a dedicated perl module", aclocal has been silently ignoring non-option arguments instead of correctly reporting them. Fix this regression. * t/aclocal.sh: Update to catch the regression. * aclocal.in (parse_arguments): Explicitly reject non-option arguments. * NEWS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'aclocal.in')
-rw-r--r--aclocal.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/aclocal.in b/aclocal.in
index 09e1da428..dfb851baa 100644
--- a/aclocal.in
+++ b/aclocal.in
@@ -982,6 +982,12 @@ sub parse_arguments ()
use Automake::Getopt ();
Automake::Getopt::parse_options %cli_options;
+ if (@ARGV > 0)
+ {
+ fatal ("non-option arguments are not accepted: '$ARGV[0]'.\n"
+ . "Try '$0 --help' for more information.");
+ }
+
if ($print_and_exit)
{
print "@system_includes\n";