summaryrefslogtreecommitdiff
path: root/mh/whom.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-11-15 12:37:11 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-11-15 12:37:11 +0200
commit7717d6fab8dd9168864990714574a82aa85f7229 (patch)
tree61a5dd2ec7e6a84c129afd337c65324f8957bb37 /mh/whom.c
parentd4582ca1b9a2d117f6f8db8fc5963c27f8c1fad4 (diff)
downloadmailutils-7717d6fab8dd9168864990714574a82aa85f7229.tar.gz
mailutils-7717d6fab8dd9168864990714574a82aa85f7229.tar.bz2
mh: improve traditional option parser and help output.
* mh/mh_getopt.h (mh_option): Move match_len to the end of the structure. It should not be initialized. (mh_option_init): New prototype. * mh/mh_getopt.c (mh_option_init): New function. * mh/mh_argp.c (mh_argp_parse): Call mh_option_init. * mh/ali.c: Update mh_option declaration. * mh/anno.c: Likewise. * mh/burst.c: Likewise. * mh/comp.c: Likewise. * mh/fmtcheck.c: Likewise. * mh/folder.c: Likewise. * mh/forw.c: Likewise. * mh/inc.c: Likewise. * mh/install-mh.c: Likewise. * mh/mark.c: Likewise. * mh/mhl.c: Likewise. * mh/mhn.c: Likewise. * mh/mhparam.c: Likewise. * mh/mhpath.c: Likewise. * mh/pick.c: Likewise. * mh/refile.c: Likewise. * mh/repl.c: Likewise. * mh/rmf.c: Likewise. * mh/rmm.c: Likewise. * mh/scan.c: Likewise. * mh/send.c: Likewise. * mh/sortm.c: Likewise. * mh/whatnow.c: Likewise. * mh/whom.c: Likewise.
Diffstat (limited to 'mh/whom.c')
-rw-r--r--mh/whom.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mh/whom.c b/mh/whom.c
index b943e97d6..e068cd46f 100644
--- a/mh/whom.c
+++ b/mh/whom.c
@@ -42,12 +42,12 @@ static struct argp_option options[] = {
/* Traditional MH options */
struct mh_option mh_option[] = {
- {"alias", 1, 0, "aliasfile" },
- {"draft", 5, 0, NULL },
- {"draftfolder", 6, 0, "folder" },
- {"draftmessage", 6, 0, "message"},
- {"nodraftfolder", 3, 0, NULL },
- {"check", 1, MH_OPT_BOOL, NULL},
+ { "alias", MH_OPT_ARG, "aliasfile" },
+ { "draft" },
+ { "draftfolder", MH_OPT_ARG, "folder" },
+ { "draftmessage", MH_OPT_ARG, "message" },
+ { "nodraftfolder" },
+ { "check", MH_OPT_BOOL },
{NULL}
};

Return to:

Send suggestions and report system problems to the System administrator.