mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
args parser fix
This commit is contained in:
parent
d1b977971f
commit
7c8591bb65
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
#define UTIL_COMMAND_LINE_HPP_
|
#define UTIL_COMMAND_LINE_HPP_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "../files/engine_paths.hpp"
|
#include "../files/engine_paths.hpp"
|
||||||
|
|
@ -19,7 +20,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasNext() const {
|
bool hasNext() const {
|
||||||
return pos < argc;
|
return pos < argc && strlen(argv[pos]);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isKeywordArg() const {
|
bool isKeywordArg() const {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue