commandDispatcher: try 2

This commit is contained in:
Cynthia Foxwell 2022-12-10 15:29:00 -07:00
parent a15e4c9d1d
commit d920d334a2

View file

@ -28,7 +28,7 @@ function parseAsArgv(argv) {
for (const arg of argv) { for (const arg of argv) {
const equalsIndex = arg.indexOf("="); const equalsIndex = arg.indexOf("=");
const argName = const argName =
equalsIndex === -1 equalsIndex === -1 && arg.charAt(0) === "-"
? removeStartHyphens(arg) ? removeStartHyphens(arg)
: removeStartHyphens(arg.slice(0, equalsIndex)); : removeStartHyphens(arg.slice(0, equalsIndex));