fixed undefined argument processing

This commit is contained in:
mmacierzanka committed 2021-08-03 01:36:09 +02:00
1 parent ee71f98a54
commit 034e5abf88
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ export class Command {
this.arguments.map((a, i) => {
if (!inputArguments[i] && !a.optional) {
throw new MissingArgumentError(a);
} else {
} else if (inputArguments[i]) {
inputArguments[i] = ProcessArgument(
inputArguments[i] as string,
a.type