/[global]/global/gtags/gtags.c
ViewVC logotype

Diff of /global/gtags/gtags.c

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

revision 1.131 by h-iwamoto, Fri Aug 19 05:08:14 2005 UTC revision 1.132 by shigio, Fri Aug 26 04:30:03 2005 UTC
# Line 116  help(void) Line 116  help(void)
116    
117  static struct option const long_options[] = {  static struct option const long_options[] = {
118          {"compact", no_argument, NULL, 'c'},          {"compact", no_argument, NULL, 'c'},
119            {"file", required_argument, NULL, 'f'},
120          {"idutils", no_argument, NULL, 'I'},          {"idutils", no_argument, NULL, 'I'},
121          {"incremental", no_argument, NULL, 'i'},          {"incremental", no_argument, NULL, 'i'},
122          {"max-args", required_argument, NULL, 'n'},          {"max-args", required_argument, NULL, 'n'},
# Line 131  static struct option const long_options[ Line 132  static struct option const long_options[
132          {"cxref", no_argument, &cxref, 1},          {"cxref", no_argument, &cxref, 1},
133          {"debug", no_argument, &debug, 1},          {"debug", no_argument, &debug, 1},
134          {"expand", required_argument, &do_expand, 1},          {"expand", required_argument, &do_expand, 1},
         {"file", required_argument, NULL, 0},  
135          {"find", no_argument, &do_find, 1},          {"find", no_argument, &do_find, 1},
136          {"gtagsconf", required_argument, &gtagsconf, 1},          {"gtagsconf", required_argument, &gtagsconf, 1},
137          {"gtagslabel", required_argument, &gtagslabel, 1},          {"gtagslabel", required_argument, &gtagslabel, 1},
# Line 201  main(argc, argv) Line 201  main(argc, argv)
201          int optchar;          int optchar;
202          int option_index = 0;          int option_index = 0;
203    
204          while ((optchar = getopt_long(argc, argv, "ciIn:oqvwse", long_options, &option_index)) != EOF) {          while ((optchar = getopt_long(argc, argv, "cf:iIn:oqvwse", long_options, &option_index)) != EOF) {
205                  switch (optchar) {                  switch (optchar) {
206                  case 0:                  case 0:
207                          p = long_options[option_index].name;                          p = long_options[option_index].name;
# Line 222  main(argc, argv) Line 222  main(argc, argv)
222                                  }                                  }
223                                  set_env(name, value);                                  set_env(name, value);
224                                  gtagsconf = gtagslabel = 0;                                  gtagsconf = gtagslabel = 0;
                         } else if (!strcmp(p, "file")) {  
                                 file_list = optarg;  
225                          }                          }
226                          break;                          break;
227                  case 'c':                  case 'c':
228                          cflag++;                          cflag++;
229                          break;                          break;
230                    case 'f':
231                            file_list = optarg;
232                            break;
233                  case 'i':                  case 'i':
234                          iflag++;                          iflag++;
235                          break;                          break;

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

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