6 Commits
3.0.2 ... 3.0.3

Author SHA1 Message Date
Kelson
d6914eb34f Bump-up version to 3.0.3 2020-03-01 15:50:32 +01:00
Kelson
b65212fab7 Merge pull request #364 from kiwix/fix-argument-parsing
Fix argument parsing
2020-03-01 15:49:17 +01:00
Kelson
83427af3d2 Update Changelog 2020-03-01 15:45:31 +01:00
Kelson
d572bf875d Better --version argument parsing 2020-03-01 15:42:44 +01:00
Kelson
833c997782 Remove usell origId option parsing 2020-03-01 15:36:31 +01:00
Kelson
44613aae5d Print information about /data if error 2020-02-18 08:38:18 +01:00
4 changed files with 14 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
kiwix-tools 3.0.3
=================
* [MANAGER] Fix broken --version argument parsin
kiwix-tools 3.0.2
=================

View File

@@ -16,3 +16,10 @@ fi
CMD="/usr/local/bin/kiwix-serve --port=80 $@"
echo $CMD
$CMD
# If error, print the content of /data
if [ $? -ne 0 ]
then
echo "Here is the content of /data:"
find /data -type f
fi

View File

@@ -1,5 +1,5 @@
project('kiwix-tools', 'cpp',
version : '3.0.2',
version : '3.0.3',
license : 'GPL',
default_options: ['c_std=c11', 'cpp_std=c++11', 'werror=true'])

View File

@@ -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;
@@ -228,7 +223,7 @@ int main(int argc, char** argv)
int option_index = 0;
int c;
while (true) {
while (true && argc == 2) {
c = getopt_long(argc, argv, "v", long_options, &option_index);
if (c == -1)
break;