Allow 'lime rebuild <target>' and not just 'lime rebuild lime <target>'

This commit is contained in:
Joshua Granick
2014-09-30 17:53:20 -07:00
parent 540aa48c39
commit 89c7f224f6

View File

@@ -114,13 +114,19 @@ class CommandLineTools {
case "rebuild":
if (words.length < 2 || words.length > 2) {
if (words.length < 1 || words.length > 2) {
LogHelper.error ("Incorrect number of arguments for command '" + command + "'");
return;
}
if (words.length < 2) {
words.unshift ("lime");
}
var targets = words[1].split (",");
var haxelib = null;