Minor spelling correction.

Don't proceed if the user specified an unknown option.
This commit is contained in:
acli 2004-02-09 23:34:08 +00:00
parent 057ba36767
commit c1b5d94e20
1 changed files with 3 additions and 2 deletions

View File

@ -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] )
{