commandDispatcher: try 2
This commit is contained in:
parent
a15e4c9d1d
commit
d920d334a2
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue