Better --version argument parsing

This commit is contained in:
Kelson 2020-03-01 15:42:44 +01:00
parent 833c997782
commit d572bf875d

View File

@ -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;