contrib/buildsystems: error out on unknown option
One time too many did this developer call the `generate` script passing a `--make-out=<PATH>` option that was happily ignored (because there should be a space, not an equal sign, between `--make-out` and the path). And one time too many, this script not only ignored it but did not even complain. Let's fix that. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jul 29, 2019 at 13:08 UTC
66697467f8256bbc45e413fd2c5022898b0b01c0
1 file changed
+2
contrib/buildsystems/engine.pl
+2
@@ -57,6 +57,8 @@ while (@ARGV) {
57
open(F, "<$infile") || die "Couldn't open file $infile";
58
@makedry = <F>;
59
close(F);
60
+ } else {
61
+ die "Unknown option: " . $arg;
62
}
63
}
64