114 |
} |
} |
115 |
|
|
116 |
static struct option const long_options[] = { |
static struct option const long_options[] = { |
|
{"absolute", no_argument, &do_absolute, 1}, |
|
117 |
{"compact", no_argument, NULL, 'c'}, |
{"compact", no_argument, NULL, 'c'}, |
|
{"cxref", no_argument, &cxref, 1}, |
|
118 |
{"idutils", no_argument, NULL, 'I'}, |
{"idutils", no_argument, NULL, 'I'}, |
119 |
{"incremental", no_argument, NULL, 'i'}, |
{"incremental", no_argument, NULL, 'i'}, |
120 |
{"max-args", required_argument, NULL, 'n'}, |
{"max-args", required_argument, NULL, 'n'}, |
124 |
{"warning", no_argument, NULL, 'w'}, |
{"warning", no_argument, NULL, 'w'}, |
125 |
|
|
126 |
/* long name only */ |
/* long name only */ |
127 |
|
{"absolute", no_argument, &do_absolute, 1}, |
128 |
{"config", optional_argument, &show_config, 1}, |
{"config", optional_argument, &show_config, 1}, |
129 |
{"convert", no_argument, &do_convert, 1}, |
{"convert", no_argument, &do_convert, 1}, |
130 |
|
{"cxref", no_argument, &cxref, 1}, |
131 |
{"debug", no_argument, &debug, 1}, |
{"debug", no_argument, &debug, 1}, |
132 |
{"expand", required_argument, &do_expand, 1}, |
{"expand", required_argument, &do_expand, 1}, |
133 |
{"find", no_argument, &do_find, 1}, |
{"find", no_argument, &do_find, 1}, |
199 |
int optchar; |
int optchar; |
200 |
int option_index = 0; |
int option_index = 0; |
201 |
|
|
202 |
while ((optchar = getopt_long(argc, argv, "cGiIn:oPqvw", long_options, &option_index)) != EOF) { |
while ((optchar = getopt_long(argc, argv, "ciIn:oqvwse", long_options, &option_index)) != EOF) { |
203 |
switch (optchar) { |
switch (optchar) { |
204 |
case 0: |
case 0: |
205 |
p = long_options[option_index].name; |
p = long_options[option_index].name; |