summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2020-09-07 21:18:23 +0100
committerReuben Thomas <rrt@sc3d.org>2020-09-07 21:18:23 +0100
commitfd5c21c6f6cd41929196c0415dac30bff65bdaf8 (patch)
treefdb6f8f7d3e73534df1227cf1ff5b43c27d76581 /src
parent0aa7d1c4cf1586ce4001818cfb741a8908c33d7c (diff)
downloadenchant-fd5c21c6f6cd41929196c0415dac30bff65bdaf8.tar.gz
enchant: ignore -B for ispell compatibility (Emacs passes -B to ispell)
Diffstat (limited to 'src')
-rw-r--r--src/enchant.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/enchant.c b/src/enchant.c
index 579b6a0..953e704 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -422,7 +422,7 @@ int main (int argc, char ** argv)
#endif
int optchar;
- while ((optchar = getopt (argc, argv, ":d:alvLm")) != -1) {
+ while ((optchar = getopt (argc, argv, ":d:alvLmB")) != -1) {
switch (optchar) {
case 'd':
dictionary = optarg; /* Emacs calls ispell with '-d dictionary'. */
@@ -443,7 +443,8 @@ int main (int argc, char ** argv)
print_version (stderr);
exit (0);
case 'm':
- /* Ignore: Emacs calls ispell with '-m'. */
+ case 'B':
+ /* Ignore: Emacs calls ispell with '-m' and '-B'. */
break;
case 'h':
print_help (argv[0]);