|
|
|
|
@ -119,7 +119,6 @@ int handle_add(kiwix::Library* library, const std::string& libraryPath,
|
|
|
|
|
string zimPath;
|
|
|
|
|
string zimPathToSave = ".";
|
|
|
|
|
string url;
|
|
|
|
|
string origID = "";
|
|
|
|
|
int option_index = 0;
|
|
|
|
|
int c = 0;
|
|
|
|
|
int resultCode = 0;
|
|
|
|
|
@ -133,7 +132,6 @@ int handle_add(kiwix::Library* library, const std::string& libraryPath,
|
|
|
|
|
optind = 3;
|
|
|
|
|
static struct option long_options[] = {
|
|
|
|
|
{"url", required_argument, 0, 'u'},
|
|
|
|
|
{"origId", required_argument, 0, 'o'},
|
|
|
|
|
{"zimPathToSave", required_argument, 0, 'z'},
|
|
|
|
|
{0, 0, 0, 0}
|
|
|
|
|
};
|
|
|
|
|
@ -149,9 +147,6 @@ int handle_add(kiwix::Library* library, const std::string& libraryPath,
|
|
|
|
|
case 'u':
|
|
|
|
|
url = optarg;
|
|
|
|
|
break;
|
|
|
|
|
case 'o':
|
|
|
|
|
origID = optarg;
|
|
|
|
|
break;
|
|
|
|
|
case 'z':
|
|
|
|
|
zimPathToSave = optarg;
|
|
|
|
|
break;
|
|
|
|
|
|