123 |
} |
} |
124 |
|
|
125 |
static int |
static int |
126 |
opt_handler (int key, char *arg, void *unused) |
opt_handler (int key, char *arg, void *unused, struct argp_state *state) |
127 |
{ |
{ |
128 |
char *s; |
char *s; |
129 |
|
|
172 |
width = strtoul (arg, NULL, 0); |
width = strtoul (arg, NULL, 0); |
173 |
if (!width) |
if (!width) |
174 |
{ |
{ |
175 |
mh_error (_("Invalid width")); |
argp_error (state, _("Invalid width")); |
176 |
exit (1); |
exit (1); |
177 |
} |
} |
178 |
break; |
break; |
198 |
case ARG_INPLACE: |
case ARG_INPLACE: |
199 |
case ARG_WHATNOWPROC: |
case ARG_WHATNOWPROC: |
200 |
case ARG_NOWHATNOWPROC: |
case ARG_NOWHATNOWPROC: |
201 |
mh_error (_("option is not yet implemented")); |
argp_error (state, _("option is not yet implemented")); |
202 |
exit (1); |
exit (1); |
203 |
|
|
204 |
default: |
default: |
318 |
/* Native Language Support */ |
/* Native Language Support */ |
319 |
mu_init_nls (); |
mu_init_nls (); |
320 |
|
|
321 |
mh_argp_parse (argc, argv, options, mh_option, args_doc, doc, |
mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, |
322 |
opt_handler, NULL, &index); |
opt_handler, NULL, &index); |
323 |
if (mh_format_parse (format_str, &format)) |
if (mh_format_parse (format_str, &format)) |
324 |
{ |
{ |