Skip to content

Commit 57ec6c6

Browse files
committed
fix exit ret and jsdoc
1 parent cc019ca commit 57ec6c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const god = ok => typeof ok === 'string' ? [ok] : isA(ok) ? ok : [];
3030
* @param {KeyKitMap} req Options structure definition
3131
* @param {KeyValMap} res Object to store parsed results
3232
* @param {IsFatal} err Error handler function, return true to quit parsing
33-
* @returns {{ i: number, opt: OptStr, key?: VarKey, exit: boolean }}
33+
* @returns {{ i: number, exit?: VarKey }}
3434
* @example
3535
*/
3636
export default function parse(argv, i, req, res, err) {
@@ -75,7 +75,7 @@ export default function parse(argv, i, req, res, err) {
7575
for (const o of god(vk.rst)) if (o!=='--') rst_[o||key] = key;
7676
}
7777
// process
78-
let ext = '', exit = '';
78+
let ext = '', exit;
7979
I: for (; i < argv.length; ++i) {
8080
const s = argv[i];
8181
// extension ~ ASSERT key = set_[opt = ext]

0 commit comments

Comments
 (0)