diff options
-rwxr-xr-x | scripts/checkincludes.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl index 32ebff659fc..4bff13985eb 100755 --- a/scripts/checkincludes.pl +++ b/scripts/checkincludes.pl @@ -3,6 +3,15 @@ # checkincludes: Find files included more than once in (other) files. # Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>. +sub usage { + print "Usage: checkincludes.pl <file list>\n"; + exit 1; +} + +if ($#ARGV < 0) { + usage(); +} + foreach $file (@ARGV) { open(FILE, $file) or die "Cannot open $file: $!.\n"; |