Commit c45acfe9 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winemaker: Fix --single-target option parsing.

parent a6a8a034
......@@ -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") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment