summaryrefslogtreecommitdiff
path: root/messages
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-03-08 22:41:31 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-03-08 22:41:31 +0000
commit860ac637bf56553a324f10491346c882a0dfeb1c (patch)
tree2a41db8b797d65d4486fa34c9ddbbda1bb15fd72 /messages
parent955b5b09402ccd01b389ebf9951e8289745e6633 (diff)
downloadmailutils-860ac637bf56553a324f10491346c882a0dfeb1c.tar.gz
mailutils-860ac637bf56553a324f10491346c882a0dfeb1c.tar.bz2
Use mu_argp_parse.
Diffstat (limited to 'messages')
-rw-r--r--messages/messages.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/messages/messages.c b/messages/messages.c
index b1274cc44..12340eca4 100644
--- a/messages/messages.c
+++ b/messages/messages.c
@@ -11,11 +11,18 @@ static char doc[] = "GNU messages -- count the number of messages in a mailbox";
static char args_doc[] = "[mailbox...]";
static struct argp_option options[] = {
+ {NULL, 0, NULL, 0,
+ "messages specific switches:", 0},
{"quiet", 'q', 0, 0, "Only display number of messages"},
{"silent", 's', 0, 0, "Same as -q"},
{ 0 }
};
+static const char *argp_capa[] = {
+ "mailutils",
+ NULL
+};
+
struct arguments
{
int argc;
@@ -53,7 +60,7 @@ static struct argp argp = {
parse_opt,
args_doc,
doc,
- mu_common_argp_child,
+ NULL,
NULL, NULL
};
@@ -65,8 +72,7 @@ main (int argc, char **argv)
int err = 0;
struct arguments args = {0, NULL};
- mu_create_argcv (argc, argv, &argc, &argv);
- argp_parse (&argp, argc, argv, 0, 0, &args);
+ mu_argp_parse (&argp, &argc, &argv, 0, argp_capa, NULL, &args);
registrar_get_list (&bookie);
list_append (bookie, path_record);

Return to:

Send suggestions and report system problems to the System administrator.