Ignore -package-name <package-name> on the command line.
MERGE TO STABLE
push(@Src_files, $_);
}
- } elsif ($Dashdashes_seen == 1) { # where we ignore unknown options
- push(@Src_files,$_) if ! /^-/;
+ } elsif ($Dashdashes_seen == 1) {
+ if ( /^-package-name$/ ) {
+ # Skip option argument
+ shift(@ARGV);
+ } elsif ( /^-/ ) {
+ # Ignore unknown option
+ } else {
+ push(@Src_files,$_);
+ }
}
}
}