fixed type issue
This commit is contained in:
parent
c32f41cc23
commit
eb3d9d722f
8
dist/smartcli.getters.js
vendored
8
dist/smartcli.getters.js
vendored
File diff suppressed because one or more lines are too long
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user