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'}, |
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, >agsconf, 1}, |
{"gtagsconf", required_argument, >agsconf, 1}, |
137 |
{"gtagslabel", required_argument, >agslabel, 1}, |
{"gtagslabel", required_argument, >agslabel, 1}, |
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; |
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; |