fixed type issue

This commit is contained in:
Philipp Kunz 2016-05-10 17:21:30 -07:00
parent c32f41cc23
commit eb3d9d722f
2 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -48,11 +48,11 @@ export let commandArgs = function():CliCommandArgument[] {
var commandArgs:CliCommandArgument[] = [];
var argsArray = commandArray().slice(0);
argsArray.shift();
for (var item in argsArray){
var commandArgument:CliCommandArgument = {
for (let item in argsArray){
let commandArgument:CliCommandArgument = {
specified:true,
name:argsArray[item],
level: item + 1
level: parseInt(item) + 1
}
commandArgs.push(commandArgument);
}