i++;
while(i < args.length)
{
- if (args[i].substring(0,2) != '--'){
-
+ if (args[i].substring(0,2) == '--'){
+ i--;
break;
}
this[a].push(args[i]);
+ i++;
}
- i--;
+
+ continue;
}
throw {
name: "ArgumentError",
- message: "Do not know how to handle: " + a
+ message: "Do not know how to handle: " + a + ' ' + typeof(this[a])
};
}