chiark / gitweb /
test suite: pretend-pbuilder: Reject unknown options
[dgit.git] / tests / pretend-pbuilder
index 8495a2f74d9b6668919b939e6efcfb27540476a0..1d39eb382ce65e56d8e278653dbce385186df359 100755 (executable)
@@ -12,7 +12,8 @@ die "pbuilder: you should use me only to build, dgit"
 my $debbuildopts = undef;
 my $distribution = undef;
 GetOptions('debbuildopts=s' => \$debbuildopts,
-           'distribution=s' => \$distribution);
+           'distribution=s' => \$distribution)
+    or die;
 
 # ignore user args; last argument has to be the .dsc filename
 my $dsc = $ARGV[-1];