/[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.19 by polak, Sun Feb 9 21:06:49 2003 UTC revision 1.20 by gray, Mon Feb 10 01:08:09 2003 UTC
# Line 33  static char args_doc[] = N_("[+folder] [ Line 33  static char args_doc[] = N_("[+folder] [
33    
34  /* GNU options */  /* GNU options */
35  static struct argp_option options[] = {  static struct argp_option options[] = {
36    {"folder",  'f', N_("FOLDER"), 0, N_("Specify folder to scan")},    {"folder",  ARG_FOLDER, N_("FOLDER"), 0,
37    {"clear",   'c', N_("BOOL"),   OPTION_ARG_OPTIONAL,     N_("Specify folder to scan")},
38      {"clear",   ARG_CLEAR, N_("BOOL"),   OPTION_ARG_OPTIONAL,
39     N_("Clear screen after displaying the list")},     N_("Clear screen after displaying the list")},
40    {"form",    'F', N_("FILE"),   0, N_("Read format from given file")},    {"form",    ARG_FORM, N_("FILE"),   0,
41    {"format",  't', N_("FORMAT"), 0, N_("Use this format string")},     N_("Read format from given file")},
42    {"header",  'H', N_("BOOL"),   OPTION_ARG_OPTIONAL, N_("Display header")},    {"format",  ARG_FORMAT, N_("FORMAT"), 0,
43    {"width",   'w', N_("NUMBER"), 0, N_("Set output width")},     N_("Use this format string")},
44    {"reverse", 'r', N_("BOOL"),   OPTION_ARG_OPTIONAL, N_("List messages in reverse order")},    {"header",  ARG_HEADER, N_("BOOL"),   OPTION_ARG_OPTIONAL,
45    {"file",    'i', N_("FILE"),   0, N_("[Not yet implemented]")},     N_("Display header")},
46      {"width",   ARG_WIDTH, N_("NUMBER"), 0,
47       N_("Set output width")},
48      {"reverse", ARG_REVERSE, N_("BOOL"),   OPTION_ARG_OPTIONAL,
49       N_("List messages in reverse order")},
50      {"file",    ARG_FILE, N_("FILE"),   0,
51       N_("[Not yet implemented]")},
52        
53    {"license", 'l', 0,        0, N_("Display software license"), -1},    {"license", ARG_LICENSE, 0,        0,
54       N_("Display software license"), -1},
55    
56    { 0 }    { 0 }
57  };  };
# Line 81  opt_handler (int key, char *arg, void *u Line 89  opt_handler (int key, char *arg, void *u
89    switch (key)    switch (key)
90      {      {
91      case '+':      case '+':
92      case 'f':      case ARG_FOLDER:
93        current_folder = arg;        current_folder = arg;
94        break;        break;
95                
96      case 'c':      case ARG_CLEAR:
97        clear = is_true(arg);        clear = is_true(arg);
98        break;        break;
99                
100      case 'F':      case ARG_FORM:
101        mh_read_formfile (arg, &format_str);        mh_read_formfile (arg, &format_str);
102        break;        break;
103                
104      case 't':      case ARG_FORMAT:
105        format_str = arg;        format_str = arg;
106        break;        break;
107                
108      case 'H':      case ARG_HEADER:
109        header = is_true(arg);        header = is_true(arg);
110        break;        break;
111                
112      case 'w':      case ARG_WIDTH:
113        width = strtoul (arg, NULL, 0);        width = strtoul (arg, NULL, 0);
114        if (!width)        if (!width)
115          {          {
# Line 110  opt_handler (int key, char *arg, void *u Line 118  opt_handler (int key, char *arg, void *u
118          }          }
119        break;        break;
120                
121      case 'r':      case ARG_REVERSE:
122        reverse = is_true(arg);        reverse = is_true(arg);
123        break;        break;
124                
125      case 'i':      case ARG_FILE:
126        mh_error (_("'i' is not yet implemented."));        mh_error (_("option is not yet implemented"));
127        break;        break;
128                
129      case 'l':      case ARG_LICENSE:
130        mh_license (argp_program_version);        mh_license (argp_program_version);
131        break;        break;
132                

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

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