summaryrefslogtreecommitdiff
path: root/mh/repl.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/repl.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/repl.c')
-rw-r--r--mh/repl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mh/repl.c b/mh/repl.c
index af6b22d37..73fba50f1 100644
--- a/mh/repl.c
+++ b/mh/repl.c
@@ -256,11 +256,14 @@ opt_handler (int key, char *arg, struct argp_state *state)
break;
case ARG_INPLACE:
+ mh_opt_notimpl_warning ("-inplace");
+ break;
+
case ARG_WHATNOWPROC:
case ARG_NOWHATNOWPROC:
- argp_error (state, _("Option is not yet implemented"));
- exit (1);
-
+ mh_opt_notimpl ("-[no]whatnowproc");
+ break;
+
case ARG_LICENSE:
mh_license (argp_program_version);
break;

Return to:

Send suggestions and report system problems to the System administrator.