diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-05-13 16:54:03 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-05-13 16:54:03 +0300 |
commit | d6d78fad1073dc4b1da28696a5aec01b6460ad29 (patch) | |
tree | 26b21c41796fb9603d19a929a1fb23235f23445e /mh/repl.c | |
parent | ae130d52fd03ccc49e1df6ef92ca0c841a071073 (diff) | |
download | mailutils-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.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |