/[mailutils]/mailutils/mh/scan.c
ViewVC logotype

Diff of /mailutils/mh/scan.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by gray, Mon Feb 10 01:08:09 2003 UTC revision 1.21 by gray, Sun Feb 16 11:26:12 2003 UTC
# Line 84  void print_header __P((mailbox_t mbox)); Line 84  void print_header __P((mailbox_t mbox));
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      {      {
# Line 113  opt_handler (int key, char *arg, void *u Line 113  opt_handler (int key, char *arg, void *u
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;
# Line 123  opt_handler (int key, char *arg, void *u Line 123  opt_handler (int key, char *arg, void *u
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:
# Line 166  main (int argc, char **argv) Line 166  main (int argc, char **argv)
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))

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26