84 |
void clear_screen __P((void)); |
void clear_screen __P((void)); |
85 |
|
|
86 |
static int |
static int |
87 |
opt_handler (int key, char *arg, void *unused) |
opt_handler (int key, char *arg, void *unused, struct argp_state *state) |
88 |
{ |
{ |
89 |
switch (key) |
switch (key) |
90 |
{ |
{ |
113 |
width = strtoul (arg, NULL, 0); |
width = strtoul (arg, NULL, 0); |
114 |
if (!width) |
if (!width) |
115 |
{ |
{ |
116 |
mh_error (_("Invalid width")); |
argp_error (state, _("Invalid width")); |
117 |
exit (1); |
exit (1); |
118 |
} |
} |
119 |
break; |
break; |
123 |
break; |
break; |
124 |
|
|
125 |
case ARG_FILE: |
case ARG_FILE: |
126 |
mh_error (_("option is not yet implemented")); |
argp_error (state, _("option is not yet implemented")); |
127 |
break; |
break; |
128 |
|
|
129 |
case ARG_LICENSE: |
case ARG_LICENSE: |
166 |
/* Native Language Support */ |
/* Native Language Support */ |
167 |
mu_init_nls (); |
mu_init_nls (); |
168 |
|
|
169 |
mh_argp_parse (argc, argv, options, mh_option, args_doc, doc, |
mh_argp_parse (argc, argv, 0, options, mh_option, args_doc, doc, |
170 |
opt_handler, NULL, &index); |
opt_handler, NULL, &index); |
171 |
|
|
172 |
if (mh_format_parse (format_str, &format)) |
if (mh_format_parse (format_str, &format)) |