mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-22 19:30:36 +00:00
Rez: --define and --include options were accidentally non-optional. (issue #11)
This commit is contained in:
parent
30db43bf10
commit
2a86126dad
10
Rez/Rez.cc
10
Rez/Rez.cc
@ -88,10 +88,12 @@ int main(int argc, const char *argv[])
|
|||||||
{
|
{
|
||||||
RezLexer lexer(fn);
|
RezLexer lexer(fn);
|
||||||
|
|
||||||
for(std::string define : options["define"].as<std::vector<std::string>>())
|
if(options.count("define"))
|
||||||
lexer.addDefine(define);
|
for(std::string define : options["define"].as<std::vector<std::string>>())
|
||||||
for(std::string path : options["include"].as<std::vector<std::string>>())
|
lexer.addDefine(define);
|
||||||
lexer.addIncludePath(path);
|
if(options.count("include"))
|
||||||
|
for(std::string path : options["include"].as<std::vector<std::string>>())
|
||||||
|
lexer.addIncludePath(path);
|
||||||
|
|
||||||
|
|
||||||
RezParser parser(lexer, world);
|
RezParser parser(lexer, world);
|
||||||
|
Loading…
Reference in New Issue
Block a user