3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

Added -search option to dict.org.pl

This commit is contained in:
Pragmatic Software 2010-03-28 12:01:53 +00:00
parent 1131ab8bba
commit 2160c36a8c

View File

@ -65,7 +65,7 @@ if (@ARGV > 0)
}
=cut
} else {
print "Usage: !dict [-d database] [-n start from definition number] [-t first letter of word class type (n]oun, v]erb, etc)] <word>\n";
print "Usage: dict [-d database] [-n start from definition number] [-t first letter of word class type (n]oun, v]erb, etc)] [-search <regex> for definitions matching <regex>] <word>\n";
exit 0;
}
@ -351,7 +351,7 @@ sub initialise
=cut
if(not $config->args(\@ARGV)) {
print "Usage: !dict [-d database] [-n start from definition number] [-t first letter of word class type (n]oun, v]erb, etc)] <word>\n";
print "Usage: dict [-d database] [-n start from definition number] [-t first letter of word class type (n]oun, v]erb, etc)] [-search <regex> for definitions matching <regex>] <word>\n";
exit;
}