I was going to add another option but changed my mind. But, let's
keep this patch anyway.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
readglobalconfig();
my $push_harness = 0;
-if (@ARGV && $ARGV[0] =~ m{^--push-harness(?:-try)?$}) {
- $push_harness = $&;
- shift @ARGV;
+while (@ARGV && $ARGV[0] =~ m{^-}) {
+ $_ = shift @ARGV;
+ last if $_ eq '--';
+ if (m{^--push-harness(?:-try)?$}) {
+ $push_harness = $&;
+ } else {
+ die "unknown option \`$_' ?";
+ }
}
my $flight= shift @ARGV // '';