mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 03:52:35 -04:00
+ bug fix in argument parsing
This commit is contained in:
parent
2d5f4350eb
commit
3efd819625
@ -275,7 +275,6 @@ int main(int argc, char **argv) {
|
||||
if (c != -1) {
|
||||
|
||||
switch (c) {
|
||||
|
||||
case 'd':
|
||||
daemonFlag = true;
|
||||
break;
|
||||
@ -291,13 +290,12 @@ int main(int argc, char **argv) {
|
||||
case 'p':
|
||||
serverPort = atoi(optarg);
|
||||
break;
|
||||
|
||||
}
|
||||
} else {
|
||||
if (optind < argc) {
|
||||
zimPath = argv[optind++];
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user