Support -- (in addition to -args) for additional arguments (like 'lime test neko -- hello=world')

This commit is contained in:
Joshua Granick
2018-04-18 09:33:28 -07:00
parent 8c95c737ba
commit 972af872bb

View File

@@ -2192,6 +2192,10 @@ class CommandLineTools {
overrides.haxeflags.push (argument);
catchHaxeFlag = false;
} else if (argument == "-args" || argument == "--") {
catchArguments = true;
} else if (catchArguments) {
additionalArguments.push (argument);
@@ -2364,10 +2368,6 @@ class CommandLineTools {
HaxelibHelper.debug = true;
} else if (argument == "-args") {
catchArguments = true;
} else if (argument.substr (0, 1) == "-") {
if (argument == "-dce" || argument.substr (1, 1) == "-") {