args parser fix

This commit is contained in:
MihailRis 2024-05-07 22:32:53 +03:00
parent d1b977971f
commit 7c8591bb65

View File

@ -2,6 +2,7 @@
#define UTIL_COMMAND_LINE_HPP_
#include <string>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include "../files/engine_paths.hpp"
@ -19,7 +20,7 @@ public:
}
bool hasNext() const {
return pos < argc;
return pos < argc && strlen(argv[pos]);
}
bool isKeywordArg() const {