From 034e5abf885c05a65296df30e61ac3b7ccf786ed Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Tue, 3 Aug 2021 01:36:09 +0200 Subject: [PATCH] fixed undefined argument processing --- src/Command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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