From: H. Peter Anvin Date: Wed, 25 Jun 2008 19:14:05 +0000 (-0700) Subject: cptable: error out on incorrect usage X-Git-Tag: syslinux-3.70-pre25~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bce9c47f6561f321d5a371aa38f77749f6bd01e;p=profile%2Fivi%2Fsyslinux.git cptable: error out on incorrect usage --- diff --git a/codepage/cptable.pl b/codepage/cptable.pl index 5f6f538..416e730 100755 --- a/codepage/cptable.pl +++ b/codepage/cptable.pl @@ -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 @@ -13,6 +13,10 @@ ($ucd, $cpfs, $cpco, $cpout) = @ARGV; +if (!defined($cpout)) { + die "Usage: $0 UnicodeData fs-cp.txt console-cp.txt output.cp\n"; +} + %ucase = (); %lcase = (); %tcase = ();