From: Johannes Schindelin Date: Mon, 29 Jul 2019 20:08:08 +0000 (-0700) Subject: contrib/buildsystems: error out on unknown option X-Git-Tag: v2.23.0-rc1~2^2~11 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/66697467f8256bbc45e413fd2c5022898b0b01c0?ds=sidebyside contrib/buildsystems: error out on unknown option One time too many did this developer call the `generate` script passing a `--make-out=` 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/buildsystems/engine.pl b/contrib/buildsystems/engine.pl index 732239d817..1a12f4d556 100755 --- a/contrib/buildsystems/engine.pl +++ b/contrib/buildsystems/engine.pl @@ -57,6 +57,8 @@ sub showUsage open(F, "<$infile") || die "Couldn't open file $infile"; @makedry = ; close(F); + } else { + die "Unknown option: " . $arg; } }