diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-03-20 09:04:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-20 09:47:05 -0700 |
commit | 11f2323bdc8798be15d59b271d2a9d8076f03888 (patch) | |
tree | 2ce809c04b1b3135d3ba9a6cddc44be6de76a210 | |
parent | ff5dce782f51d7380525b625fed84cb0325e2cbd (diff) | |
download | git-11f2323bdc8798be15d59b271d2a9d8076f03888.tar.gz |
Meta/cook: notice an unused extra command line arg and fail
-rwxr-xr-x | cook | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); } |