summaryrefslogtreecommitdiff
path: root/mh/mh_getopt.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-05-13 16:54:03 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-05-13 16:54:03 +0300
commitd6d78fad1073dc4b1da28696a5aec01b6460ad29 (patch)
tree26b21c41796fb9603d19a929a1fb23235f23445e /mh/mh_getopt.c
parentae130d52fd03ccc49e1df6ef92ca0c841a071073 (diff)
downloadmailutils-d6d78fad1073dc4b1da28696a5aec01b6460ad29.tar.gz
mailutils-d6d78fad1073dc4b1da28696a5aec01b6460ad29.tar.bz2
MH: Improve handling of not implemented options.
* mh/mh_getopt.c (mh_opt_notimpl, mh_opt_notimpl_warning): New functions. * mh/mh_getopt.h (mh_opt_notimpl, mh_opt_notimpl_warning): New protos. * mh/ali.c (doc): Remove 'not implemented' stanza. * mh/pick.c: Likewise. * mh/anno.c: Use mh_opt_notimpl and mh_opt_notimpl_warning for not implemented options. * mh/comp.c: Likewise. * mh/forw.c: Likewise. * mh/mhn.c: Likewise. * mh/refile.c: Likewise. * mh/repl.c: Likewise. * mh/scan.c: Likewise. * mh/send.c: Likewise.
Diffstat (limited to 'mh/mh_getopt.c')
-rw-r--r--mh/mh_getopt.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mh/mh_getopt.c b/mh/mh_getopt.c
index dbd385a53..2a6c9490f 100644
--- a/mh/mh_getopt.c
+++ b/mh/mh_getopt.c
@@ -150,3 +150,16 @@ mh_help (struct mh_option *mh_opt, const char *doc)
"Run %s --help for more info on these.\n"),
mu_program_name);
}
+
+void
+mh_opt_notimpl (const char *name)
+{
+ mu_error (_("option is not yet implemented: %s"), name);
+ exit (1);
+}
+
+void
+mh_opt_notimpl_warning (const char *name)
+{
+ mu_error (_("ignoring not implemented option %s"), name);
+}

Return to:

Send suggestions and report system problems to the System administrator.