winemaker: Fix --single-target option parsing.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2019-03-12 13:41:52 +00:00 committed by Alexandre Julliard
parent a6a8a034bd
commit c45acfe9a1
1 changed files with 4 additions and 3 deletions

View File

@ -2702,8 +2702,9 @@ binmode(STDOUT, ":utf8");
target_init(\@global_settings);
foreach(@ARGV) {
my $arg=$_;
my @args = @ARGV;
while (@args>0) {
my $arg=shift @args;
# General options
if ($arg eq "--nobanner") {
$opt_no_banner=1;
@ -2712,7 +2713,7 @@ foreach(@ARGV) {
} elsif ($arg eq "--nobackup") {
$opt_backup=0;
} elsif ($arg eq "--single-target") {
$opt_single_target=shift @ARGV;
$opt_single_target=shift @args;
} elsif ($arg eq "--lower-none") {
$opt_lower=$OPT_LOWER_NONE;
} elsif ($arg eq "--lower-all") {