mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
+ Remove last traces of CLUCENE backend support
This commit is contained in:
parent
9a00b7c1d4
commit
3349855059
@ -26,8 +26,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum supportedBackend { XAPIAN };
|
|
||||||
|
|
||||||
void usage() {
|
void usage() {
|
||||||
cout << "Usage: kiwix-index [--verbose] ZIM_PATH INDEX_PATH" << endl;
|
cout << "Usage: kiwix-index [--verbose] ZIM_PATH INDEX_PATH" << endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -41,7 +39,6 @@ int main(int argc, char **argv) {
|
|||||||
bool verboseFlag = false;
|
bool verboseFlag = false;
|
||||||
int option_index = 0;
|
int option_index = 0;
|
||||||
int c = 0;
|
int c = 0;
|
||||||
supportedBackend backend = XAPIAN;
|
|
||||||
|
|
||||||
kiwix::Indexer *indexer = NULL;
|
kiwix::Indexer *indexer = NULL;
|
||||||
|
|
||||||
@ -50,24 +47,16 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
{"verbose", no_argument, 0, 'v'},
|
{"verbose", no_argument, 0, 'v'},
|
||||||
{"backend", required_argument, 0, 'b'},
|
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (c != -1) {
|
if (c != -1) {
|
||||||
c = getopt_long(argc, argv, "vb:", long_options, &option_index);
|
c = getopt_long(argc, argv, "v", long_options, &option_index);
|
||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'v':
|
case 'v':
|
||||||
verboseFlag = true;
|
verboseFlag = true;
|
||||||
break;
|
break;
|
||||||
case 'b':
|
|
||||||
if (!strcmp(optarg, "xapian")) {
|
|
||||||
backend = XAPIAN;
|
|
||||||
} else {
|
|
||||||
usage();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (optind < argc) {
|
if (optind < argc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user