diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-03-08 22:41:31 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-03-08 22:41:31 +0000 |
commit | 860ac637bf56553a324f10491346c882a0dfeb1c (patch) | |
tree | 2a41db8b797d65d4486fa34c9ddbbda1bb15fd72 /frm | |
parent | 955b5b09402ccd01b389ebf9951e8289745e6633 (diff) | |
download | mailutils-860ac637bf56553a324f10491346c882a0dfeb1c.tar.gz mailutils-860ac637bf56553a324f10491346c882a0dfeb1c.tar.bz2 |
Use mu_argp_parse.
Diffstat (limited to 'frm')
-rw-r--r-- | frm/frm.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -58,6 +58,8 @@ const char *argp_program_bug_address = "<bug-mailutils@gnu.org>"; static char doc[] = "GNU frm -- display From: lines"; static struct argp_option options[] = { + {NULL, 0, NULL, 0, + "frm specific switches:", 0}, {"debug", 'd', NULL, 0, "Enable debugging output", 0}, {"field", 'f', "NAME", 0, "Header field to display", 0}, @@ -148,10 +150,14 @@ static struct argp argp = { parse_opt, NULL, doc, - mu_common_argp_child, + NULL, NULL, NULL }; +static const char *frm_argp_capa[] = { + "mailutils", + NULL +}; /* Retrieve the Personal Name from the header To: or From: */ static int @@ -292,8 +298,7 @@ main(int argc, char **argv) int c; int status = 0; - mu_create_argcv (argc, argv, &argc, &argv); - argp_parse (&argp, argc, argv, 0, &c, NULL); + mu_argp_parse (&argp, &argc, &argv, 0, frm_argp_capa, &c, NULL); /* have an argument */ argc -= c; |