mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 11:22:38 -04:00
Better --version argument parsing
This commit is contained in:
parent
833c997782
commit
d572bf875d
@ -223,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user