Skip to content

Commit 11f2323

Browse files
committed
Meta/cook: notice an unused extra command line arg and fail
1 parent ff5dce7 commit 11f2323

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cook

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,9 @@ if ($wildo) {
11101110
wildo($fd);
11111111
} elsif ($havedone) {
11121112
havedone();
1113+
} elsif (@ARGV) {
1114+
print STDERR "$0 does not take extra args: @ARGV\n";
1115+
exit 1;
11131116
} else {
11141117
doit();
11151118
}

0 commit comments

Comments
 (0)