]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Getopt.pm
In v8 mode, do not allow directly passing unknown options to debhelper commands....
[debhelper.git] / Debian / Debhelper / Dh_Getopt.pm
index da145371103506fc33f6adf92c46a8a645e56146..257fe6493c8d6de61600dbf3c0f596837c7f5882 100644 (file)
@@ -218,8 +218,9 @@ sub parseopts {
 
        my $ret=getoptions(\@ARGV, %params);
        if (!$ret) {
-               warning("warning: unknown options will be a fatal error in a future debhelper release");
-               #error("unknown option; aborting");
+               if (! compat(7)) {
+                       error("unknown option; aborting");
+               }
        }
 
        # Check to see if -V was specified. If so, but no parameters were