diff --git a/src/Command.ts b/src/Command.ts index 4405736..dc81b8e 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -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