From: acli Date: Mon, 9 Feb 2004 23:34:08 +0000 (+0000) Subject: Minor spelling correction. X-Git-Tag: R_2-1~662 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=c1b5d94e2050de7bfc9b79cb8986d64490435da3;p=koha_fer Minor spelling correction. Don't proceed if the user specified an unknown option. --- diff --git a/misc/translator/tmpl_process.pl b/misc/translator/tmpl_process.pl index 607a28d979..d1b508247b 100755 --- a/misc/translator/tmpl_process.pl +++ b/misc/translator/tmpl_process.pl @@ -18,7 +18,8 @@ GetOptions( 'type=s' => \$type, 'exclude=s' => \@excludes, 'sep=s' => \$split_char, - 'help' => \$help); + 'help' => \$help, +) || (usage(), exit(-1)); help() if $help; @@ -41,7 +42,7 @@ $filter = "./text-extract.pl -f" if !defined($filter); # Input is not a file nor a directory if( !(-d $in_files[0]) && !(-f $in_files[0])) { - usage("Unknow input. Input must a file or a directory. (Symbolic links are not supported for the moment)."); + usage("Unknown input. Input must a file or a directory. (Symbolic links are not supported for the moment.)"); } elsif( -d $in_files[0] ) {