+ bug fix in argument parsing

This commit is contained in:
kelson42 2010-03-18 21:31:24 +00:00
parent 2d5f4350eb
commit 3efd819625

View File

@ -275,7 +275,6 @@ int main(int argc, char **argv) {
if (c != -1) { if (c != -1) {
switch (c) { switch (c) {
case 'd': case 'd':
daemonFlag = true; daemonFlag = true;
break; break;
@ -291,13 +290,12 @@ int main(int argc, char **argv) {
case 'p': case 'p':
serverPort = atoi(optarg); serverPort = atoi(optarg);
break; break;
} }
} else { } else {
if (optind < argc) { if (optind < argc) {
zimPath = argv[optind++]; zimPath = argv[optind++];
break;
} }
break;
} }
} }