diff --git a/src/Terminal/Parser.ts b/src/Terminal/Parser.ts index 7e6bf280c..bf9dc1883 100644 --- a/src/Terminal/Parser.ts +++ b/src/Terminal/Parser.ts @@ -99,6 +99,7 @@ export function ParseCommand(command: string): (string | number | boolean)[] { const arg = command.substr(start, i - start); // If this is a number, convert it from a string to number + console.log(arg); if (isNumber(arg)) { args.push(parseFloat(arg)); } else if (arg === "true") { @@ -119,8 +120,13 @@ export function ParseCommand(command: string): (string | number | boolean)[] { const arg = command.substr(start, i - start); // If this is a number, convert it from string to number + console.log(arg); if (isNumber(arg)) { args.push(parseFloat(arg)); + } else if (arg === "true") { + args.push(true); + } else if (arg === "false") { + args.push(false); } else { args.push(arg); }