Skip to content

Commit 02c00da

Browse files
committed
v3.3.1 :: sort..
1 parent 473c604 commit 02c00da

File tree

5 files changed

+38
-12
lines changed

5 files changed

+38
-12
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
package-lock.json
3-
/doc/
4-
/.vscode/
3+
doc
4+
.vscode
5+
.DS_Store

.npmignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
.gitignore
22
.npmignore
3+
doc
4+
.vscode
5+
.DS_Store
6+
37
LICENSE
8+
README.md
9+
410
examples
511
test.js
12+
613
poke.js
7-
README.md

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Chinory
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const god = ok => ok === undefined ? [] : isA(ok) ? ok : [ok];
3131
* @param {KeyValMap} res Object to store parsed results
3232
* @param {IsFatal} err Error handler function, return true to quit parsing
3333
* @returns {number | { avi: number, key: KeyStr, opt: OptStr }} `ret` is object when an exit option applied, or just `avi`
34-
* @example
3534
*/
3635
export default function parse(argv, i, req, res, err) {
3736
/** @type {OptStr} option */
@@ -51,7 +50,7 @@ export default function parse(argv, i, req, res, err) {
5150
res[key] = !def;
5251
return false;
5352
} return true;
54-
}, k = o => o == null ? key : o, // undefined is ok?
53+
}, k = o => o == null ? key : o, // undefined is... well
5554
ask = (msg, val) => err({msg, avi: i, opt, key, val}),
5655
exit = c => ({ avi: i+c, key, opt });
5756
// prepare

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
22
"name": "pargv-lite",
3-
"version": "3.3.0-beta",
3+
"version": "3.3.1",
44
"description": "A lightning-fast, single-pass command line argument parser with structure validation",
55
"main": "index.js",
66
"type": "module",
7-
"scripts": {
8-
"test": "node test.js",
9-
"example": "node examples/cli-tool.js"
10-
},
117
"keywords": [
128
"cli",
139
"args",
1410
"argv",
15-
"arguments",
11+
"JSON",
1612
"parser",
1713
"command-line",
14+
"arguments",
1815
"option",
19-
"flags"
16+
"flags",
17+
"elegant",
18+
"trigram"
2019
],
2120
"author": "Chinory",
2221
"license": "MIT",

0 commit comments

Comments
 (0)