diff --git a/cook b/cook index 6d26975f29..e1d9e6aba9 100755 --- a/cook +++ b/cook @@ -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(); }