Improve use of tools without haxelib

This commit is contained in:
Joshua Granick
2015-12-28 13:43:20 -08:00
parent bc30dc7645
commit a0e03e6b35
5 changed files with 47 additions and 14 deletions

View File

@@ -160,11 +160,8 @@ class RunScript {
public static function main () {
var args = Sys.args ();
if (args.length == 0) return;
var command = args[0].toLowerCase ();
if (args.length > 2 && command == "rebuild" && args[1] == "tools") {
if (args.length > 2 && args[0] == "rebuild" && args[1] == "tools") {
var lastArgument = new Path (args[args.length - 1]).toString ();