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 commandArgs:CliCommandArgument[] = [];
var argsArray = commandArray().slice(0); var argsArray = commandArray().slice(0);
argsArray.shift(); argsArray.shift();
for (var item in argsArray){ for (let item in argsArray){
var commandArgument:CliCommandArgument = { let commandArgument:CliCommandArgument = {
specified:true, specified:true,
name:argsArray[item], name:argsArray[item],
level: item + 1 level: parseInt(item) + 1
} }
commandArgs.push(commandArgument); commandArgs.push(commandArgument);
} }