summaryrefslogtreecommitdiff
path: root/mh/mh_getopt.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-12-14 21:52:40 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-12-14 21:52:40 +0200
commitfb84d1e35a1f9247e3c79919b52230adf6592f9f (patch)
tree72a759f967e036755a1b3c31accc693df54d82fe /mh/mh_getopt.h
parent89fb41d0170724c49d23c0887d5f47026b221898 (diff)
downloadmailutils-fb84d1e35a1f9247e3c79919b52230adf6592f9f.tar.gz
mailutils-fb84d1e35a1f9247e3c79919b52230adf6592f9f.tar.bz2
Fix pick --component NAME
* mh/mh_getopt.c (mh_getopt0): New function. (mh_getopt): Rewrite as alternative entry point to . * mh/mh_getopt.h (mh_getopt0): New proto. * mh/pick.c: Use mh_getopt0 * mh/tests/pick.at: Add new testcase.
Diffstat (limited to 'mh/mh_getopt.h')
-rw-r--r--mh/mh_getopt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mh/mh_getopt.h b/mh/mh_getopt.h
index 2dcd57a1a..93d1d348d 100644
--- a/mh/mh_getopt.h
+++ b/mh/mh_getopt.h
@@ -23,6 +23,11 @@
void mh_getopt (int *pargc, char ***pargv, struct mu_option *options,
int flags,
char *argdoc, char *progdoc, char *extradoc);
+void mh_getopt0 (int *pargc, char ***pargv, struct mu_option *options,
+ int mhflags,
+ char *argdoc, char *progdoc, char *extradoc,
+ int (*eatarg) (int argc, char **argv, void *data),
+ void *data);
void mh_opt_notimpl (struct mu_parseopt *po, struct mu_option *opt,
char const *arg);

Return to:

Send suggestions and report system problems to the System administrator.