From 9d1ff77b1120ca2c2f31388ffdeea4d02a7a0788 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Tue, 29 Nov 2022 19:39:12 -0700 Subject: [PATCH] commandDispatcher: copypaste moment pt2 (no eslint edition) --- src/lib/commandDispatcher.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/commandDispatcher.js b/src/lib/commandDispatcher.js index 8caa61c..bbfda8d 100644 --- a/src/lib/commandDispatcher.js +++ b/src/lib/commandDispatcher.js @@ -33,13 +33,13 @@ function parseAsArgv(argv) { : removeStartHyphens(arg.slice(0, equalsIndex)); if (equalsIndex !== -1) { - props[argName] = convertIfApplicable(arg.slice(equalsIndex + 1)); + optional[argName] = convertIfApplicable(arg.slice(equalsIndex + 1)); } else if (arg.charAt(0) === "-") { if (arg.charAt(1) === "-") { - props[argName] = true; + optional[argName] = true; } else { for (let b = 0; b < argName.length; b++) { - props[argName.charAt(b)] = true; + optional[argName.charAt(b)] = true; } } } else {