Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 3495ea3

Browse files
committed
expand documention on handling --help
1 parent 580324e commit 3495ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ if (
6969
const helpIndex = inputStrings.indexOf("--help");
7070

7171
if (helpIndex !== -1) {
72+
//remove `--help` from array
7273
inputStrings.splice(helpIndex, 1);
74+
//insert `help` in first position
7375
inputStrings.unshift("help");
7476
}
7577
}

0 commit comments

Comments
 (0)