Meta/cook: notice an unused extra command line arg and fail

This commit is contained in:
Junio C Hamano
2024-03-20 09:04:17 -07:00
parent ff5dce782f
commit 11f2323bdc

3
cook
View File

@@ -1110,6 +1110,9 @@ if ($wildo) {
wildo($fd);
} elsif ($havedone) {
havedone();
} elsif (@ARGV) {
print STDERR "$0 does not take extra args: @ARGV\n";
exit 1;
} else {
doit();
}