cptable: error out on incorrect usage
authorH. Peter Anvin <hpa@zytor.com>
Wed, 25 Jun 2008 19:14:05 +0000 (12:14 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 25 Jun 2008 19:14:05 +0000 (12:14 -0700)
codepage/cptable.pl

index 5f6f538..416e730 100755 (executable)
@@ -5,7 +5,7 @@
 # matching.)
 #
 # Usage:
-#      cptable.pl UnicodeData filesystem-cp.txt console-cp.txt output.bin
+#      cptable.pl UnicodeData filesystem-cp.txt console-cp.txt output.cp
 #
 # Note: for the format of the UnicodeData file, see:
 # http://www.unicode.org/Public/UNIDATA/UCD.html
 
 ($ucd, $cpfs, $cpco, $cpout) = @ARGV;
 
+if (!defined($cpout)) {
+    die "Usage: $0 UnicodeData fs-cp.txt console-cp.txt output.cp\n";
+}
+
 %ucase   = ();
 %lcase   = ();
 %tcase   = ();