|
a/src/query/recollq.cpp |
|
b/src/query/recollq.cpp |
|
... |
|
... |
166 |
if (!(**argv))
|
166 |
if (!(**argv))
|
167 |
/* Cas du "adb - core" */
|
167 |
/* Cas du "adb - core" */
|
168 |
Usage();
|
168 |
Usage();
|
169 |
while (**argv)
|
169 |
while (**argv)
|
170 |
switch (*(*argv)++) {
|
170 |
switch (*(*argv)++) {
|
|
|
171 |
case '-':
|
|
|
172 |
// -- : end of options
|
|
|
173 |
goto endopts;
|
171 |
case 'A': op_flags |= OPT_A; break;
|
174 |
case 'A': op_flags |= OPT_A; break;
|
172 |
case 'a': op_flags |= OPT_a; break;
|
175 |
case 'a': op_flags |= OPT_a; break;
|
173 |
case 'b': op_flags |= OPT_b; break;
|
176 |
case 'b': op_flags |= OPT_b; break;
|
174 |
case 'c': op_flags |= OPT_c; if (argc < 2) Usage();
|
177 |
case 'c': op_flags |= OPT_c; if (argc < 2) Usage();
|
175 |
a_config = *(++argv);
|
178 |
a_config = *(++argv);
|
|
... |
|
... |
214 |
case 't': op_flags |= OPT_t; break;
|
217 |
case 't': op_flags |= OPT_t; break;
|
215 |
default: Usage(); break;
|
218 |
default: Usage(); break;
|
216 |
}
|
219 |
}
|
217 |
b1: argc--; argv++;
|
220 |
b1: argc--; argv++;
|
218 |
}
|
221 |
}
|
|
|
222 |
endopts:
|
219 |
|
223 |
|
220 |
string reason;
|
224 |
string reason;
|
221 |
*cfp = recollinit(0, 0, reason, &a_config);
|
225 |
*cfp = recollinit(0, 0, reason, &a_config);
|
222 |
RclConfig *rclconfig = *cfp;
|
226 |
RclConfig *rclconfig = *cfp;
|
223 |
if (!rclconfig || !rclconfig->ok()) {
|
227 |
if (!rclconfig || !rclconfig->ok()) {
|