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

Diff of /mailutils/mh/inc.c

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

revision 1.22 by polak, Sun Feb 9 21:06:48 2003 UTC revision 1.23 by gray, Mon Feb 10 01:08:09 2003 UTC
# Line 26  static char args_doc[] = N_("[+folder]") Line 26  static char args_doc[] = N_("[+folder]")
26    
27  /* GNU options */  /* GNU options */
28  static struct argp_option options[] = {  static struct argp_option options[] = {
29    {"file",    'i', N_("FILE"),   0, N_("Incorporate mail from named file")},    {"file",    ARG_FILE, N_("FILE"),   0,
30    {"folder",  'f', N_("FOLDER"), 0, N_("Specify folder to incorporate mail to")},     N_("Incorporate mail from named file")},
31    {"audit",   'a', N_("FILE"), 0, N_("Enable audit")},    {"folder",  ARG_FOLDER, N_("FOLDER"), 0,
32    {"noaudit", 'n', 0, 0, N_("Disable audit")},     N_("Specify folder to incorporate mail to")},
33    {"changecur", 'c', N_("BOOL"), OPTION_ARG_OPTIONAL,    {"audit",   ARG_AUDIT, N_("FILE"), 0,
34       N_("Enable audit")},
35      {"noaudit", ARG_NOAUDIT, 0, 0,
36       N_("Disable audit")},
37      {"changecur", ARG_CHANGECUR, N_("BOOL"), OPTION_ARG_OPTIONAL,
38     N_("Mark first incorporated message as current (default)")},     N_("Mark first incorporated message as current (default)")},
39    {"form",    'F', N_("FILE"),   0, N_("Read format from given file")},    {"form",    ARG_FORM, N_("FILE"),   0,
40    {"format",  't', N_("FORMAT"), 0, N_("Use this format string")},     N_("Read format from given file")},
41    {"truncate", 'T', N_("BOOL"), OPTION_ARG_OPTIONAL,    {"format",  ARG_FORMAT, N_("FORMAT"), 0,
42       N_("Use this format string")},
43      {"truncate", ARG_TRUNCATE, N_("BOOL"), OPTION_ARG_OPTIONAL,
44     N_("Truncate source mailbox after incorporating (default)")},     N_("Truncate source mailbox after incorporating (default)")},
45    {"width",   'w', N_("NUMBER"), 0, N_("Set output width")},    {"width",   ARG_WIDTH, N_("NUMBER"), 0,
46    {"quiet",   'q', 0,        0, N_("Be quiet")},     N_("Set output width")},
47    {"license", 'l', 0,        0, N_("Display software license"), -1},    {"quiet",   ARG_QUIET, 0,        0,
48       N_("Be quiet")},
49      {"license", ARG_LICENSE, 0,      0,
50       N_("Display software license"), -1},
51    { 0 }    { 0 }
52  };  };
53    
# Line 76  opt_handler (int key, char *arg, void *u Line 85  opt_handler (int key, char *arg, void *u
85          append_folder = mh_global_profile_get ("Inbox", "inbox");          append_folder = mh_global_profile_get ("Inbox", "inbox");
86        break;        break;
87    
88      case 'a':      case ARG_AUDIT:
89        audit_file = arg;        audit_file = arg;
90        break;        break;
91    
92      case 'n':      case ARG_NOAUDIT:
93        audit_file = NULL;        audit_file = NULL;
94        break;        break;
95                
96      case 'c':      case ARG_CHANGECUR:
97        changecur = is_true(arg);        changecur = is_true(arg);
98        break;        break;
99    
100      case '+':      case '+':
101      case 'f':      case ARG_FOLDER:
102        append_folder = arg;        append_folder = arg;
103        break;        break;
104                
105      case 'F':      case ARG_FORM:
106        mh_read_formfile (arg, &format_str);        mh_read_formfile (arg, &format_str);
107        break;        break;
108                
109      case 'i':      case ARG_FILE:
110        input_file = arg;        input_file = arg;
111        break;        break;
112    
113      case 'T':      case ARG_TRUNCATE:
114        truncate_source = is_true(arg);        truncate_source = is_true(arg);
115        break;        break;
116    
117      case 'w':      case ARG_WIDTH:
118        width = strtoul (arg, NULL, 0);        width = strtoul (arg, NULL, 0);
119        if (!width)        if (!width)
120          {          {
# Line 114  opt_handler (int key, char *arg, void *u Line 123  opt_handler (int key, char *arg, void *u
123          }          }
124        break;        break;
125    
126      case 'q':      case ARG_QUIET:
127        quiet = 1;        quiet = 1;
128        break;        break;
129    
130      case 'l':      case ARG_LICENSE:
131        mh_license (argp_program_version);        mh_license (argp_program_version);
132        break;        break;
133    

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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