History

checkincludes.pl: provide usage helper

Luis R. Rodriguez committed 17 years ago

Commit f9d490a1 parent d9a7a2b1 file · +9 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/checkincludes.pl+9−0
@@ -3,6 +3,15 @@ · 2 unmodified lines
33 # checkincludes: Find files included more than once in (other) files.
44 # Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>.
55
6+sub usage {
7+ print "Usage: checkincludes.pl <file list>\n";
8+ exit 1;
9+}
10+
11+if ($#ARGV < 0) {
12+ usage();
13+}
14+
615 foreach $file (@ARGV) {
716 open(FILE, $file) or die "Cannot open $file: $!.\n";
817

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t