mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-03 16:42:38 +01:00
Added -search option to dict.org.pl
This commit is contained in:
parent
1131ab8bba
commit
2160c36a8c
@ -65,7 +65,7 @@ if (@ARGV > 0)
|
|||||||
}
|
}
|
||||||
=cut
|
=cut
|
||||||
} else {
|
} 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;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -351,7 +351,7 @@ sub initialise
|
|||||||
=cut
|
=cut
|
||||||
|
|
||||||
if(not $config->args(\@ARGV)) {
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user