summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-02-04 13:14:58 -0400
committerJoey Hess <joey@kitenet.net>2014-02-04 13:14:58 -0400
commitc7b1d28e1157c2f14bb3550c41e37bc37a32b70e (patch)
tree3dc02edc2c8ab47cf8c4a717f54324488fab36e6 /dh
parentb4ad930ad2d7f9d94e9cc3395e6f000c4094886e (diff)
dh: Reject unknown parameters that are not dashed command-line parameters intended to be passed on to debhelper commands. Closes: #737635
Note that dh build -n foo bar will pass -nfoobar to the debhelper command. I did not try to change that, as it would add significant complication.
Diffstat (limited to 'dh')
-rwxr-xr-xdh3
1 files changed, 3 insertions, 0 deletions
diff --git a/dh b/dh
index faa82b96..f3bd3213 100755
--- a/dh
+++ b/dh
@@ -587,6 +587,9 @@ while (@ARGV_orig) {
$options[$#options].=$opt;
}
}
+ else {
+ error "Unknown parameter: $opt";
+ }
}
# Figure out at what point in the sequence to start for each package.