options: tiny simplification in dealing with erroneous opts
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 10 May 2013 21:01:27 +0000 (23:01 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 10 May 2013 21:01:27 +0000 (23:01 +0200)
commitf7ef16feb40d3ea8b126ec29b31dae5cec31faf0
tree7cb7957a09a5df9229904d8e6cdf87d850185b1a
parent6e486c5db436b0145280806655b17a462d2f827b
options: tiny simplification in dealing with erroneous opts

* lib/Automake/Options.pm (_process_option_list): Here, when an
invalid option is detected, there's no need to call &error with
the "uniq_scope => US_GLOBAL" switch.  In fact, if the same
erroneous option is specified in AUTOMAKE_OPTIONS in both (say)
'Makefile.am' and 'sub/Makefile.am', we want each such erroneous
usage reported separately, rather than just the first time it is
encountered (as happens when "uniq_scope => US_GLOBAL" is used).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/Automake/Options.pm