@thi.ng/args 1.0.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -90
- package/README.md +13 -5
- package/api.js +1 -0
- package/args.js +61 -11
- package/coerce.js +3 -2
- package/package.json +42 -25
- package/parse.js +4 -4
- package/usage.js +18 -4
- package/lib/index.js +0 -292
- package/lib/index.js.map +0 -1
- package/lib/index.umd.js +0 -1
- package/lib/index.umd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,136 +3,98 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@1.1.1...@thi.ng/args@2.0.0) (2021-10-12)
|
|
7
7
|
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/args
|
|
9
8
|
|
|
9
|
+
### Build System
|
|
10
10
|
|
|
11
|
+
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
|
|
11
12
|
|
|
12
13
|
|
|
14
|
+
### BREAKING CHANGES
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
* discontinue CommonJS & UMD versions
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
- only ESM modules will be published from now on
|
|
19
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
20
|
+
- i.e. launch NodeJS via:
|
|
21
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
22
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
23
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
17
24
|
|
|
25
|
+
Also:
|
|
26
|
+
- normalize/restructure/reorg all package.json files
|
|
27
|
+
- cleanup all build scripts, remove obsolete
|
|
28
|
+
- switch from mocha to @thi.ng/testament for all tests
|
|
18
29
|
|
|
19
30
|
|
|
20
31
|
|
|
21
32
|
|
|
22
|
-
## [1.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.7.2...@thi.ng/args@1.0.1) (2021-08-08)
|
|
23
33
|
|
|
24
|
-
**Note:** Version bump only for package @thi.ng/args
|
|
25
34
|
|
|
35
|
+
# [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@1.0.4...@thi.ng/args@1.1.0) (2021-08-19)
|
|
26
36
|
|
|
37
|
+
### Features
|
|
27
38
|
|
|
39
|
+
- **args:** capitalize usage section headings ([eaa0f23](https://github.com/thi-ng/umbrella/commit/eaa0f23a88cfb98da05b245b720a6fbb260ea7da))
|
|
28
40
|
|
|
41
|
+
## [0.7.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.7.0...@thi.ng/args@0.7.1) (2021-07-29)
|
|
29
42
|
|
|
30
|
-
|
|
43
|
+
### Bug Fixes
|
|
31
44
|
|
|
32
|
-
**
|
|
45
|
+
- **args:** omit empty groups from usage() ([a66c19a](https://github.com/thi-ng/umbrella/commit/a66c19aa8d682a7f4b6ae5b3de51a26e806a02dc))
|
|
33
46
|
|
|
47
|
+
# [0.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.6.0...@thi.ng/args@0.7.0) (2021-07-01)
|
|
34
48
|
|
|
49
|
+
### Features
|
|
35
50
|
|
|
51
|
+
- **args:** add showGroupNames option ([6917111](https://github.com/thi-ng/umbrella/commit/6917111aa6f019cbc4622a30be65c7f43cf995f9))
|
|
36
52
|
|
|
53
|
+
# [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.5.1...@thi.ng/args@0.6.0) (2021-06-08)
|
|
37
54
|
|
|
38
|
-
|
|
55
|
+
### Features
|
|
39
56
|
|
|
57
|
+
- **args:** add kvPairsMulti(), update coerceKV() ([fd12f80](https://github.com/thi-ng/umbrella/commit/fd12f807dba2546133278a607c4b79dcf9a12b07))
|
|
40
58
|
|
|
41
|
-
|
|
59
|
+
# [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.4.2...@thi.ng/args@0.5.0) (2021-03-28)
|
|
42
60
|
|
|
43
|
-
|
|
61
|
+
### Features
|
|
44
62
|
|
|
63
|
+
- **args:** add vec() arg type ([f05cb2a](https://github.com/thi-ng/umbrella/commit/f05cb2a6d0798ef0558775a81dba2d834308747c))
|
|
64
|
+
- **args:** wordwrap usage prefix/suffix, defaults ([325b558](https://github.com/thi-ng/umbrella/commit/325b558f74f8dbfaa2c7de72c6800cdbc8c54acd))
|
|
45
65
|
|
|
66
|
+
# [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.3.1...@thi.ng/args@0.4.0) (2021-03-22)
|
|
46
67
|
|
|
68
|
+
### Features
|
|
47
69
|
|
|
70
|
+
- **args:** add arg groups, segment usage output ([ebf5197](https://github.com/thi-ng/umbrella/commit/ebf51974e4e1e1d5288af9ad420d4211addd95ad))
|
|
71
|
+
- **args:** support arbitrary length aliases ([1cfdf49](https://github.com/thi-ng/umbrella/commit/1cfdf49a53cca2f80836caf428e220e90f687ad1))
|
|
48
72
|
|
|
49
|
-
|
|
73
|
+
## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.3.0...@thi.ng/args@0.3.1) (2021-03-21)
|
|
50
74
|
|
|
75
|
+
### Bug Fixes
|
|
51
76
|
|
|
52
|
-
|
|
77
|
+
- **args:** fix usage() show defaults logic ([ae31158](https://github.com/thi-ng/umbrella/commit/ae31158c9496d7c116ee2b4a22ca843888d2bddd))
|
|
53
78
|
|
|
54
|
-
|
|
79
|
+
# [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.2.7...@thi.ng/args@0.3.0) (2021-03-20)
|
|
55
80
|
|
|
81
|
+
### Features
|
|
56
82
|
|
|
83
|
+
- **args:** update ParseOpts, UsageOpts ([6577c80](https://github.com/thi-ng/umbrella/commit/6577c806e246ecf8244b1af6a2cefc400a7eb365))
|
|
57
84
|
|
|
85
|
+
# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.1.0...@thi.ng/args@0.2.0) (2021-01-13)
|
|
58
86
|
|
|
87
|
+
### Features
|
|
59
88
|
|
|
60
|
-
|
|
89
|
+
- **args:** add defaultHint opt, update usage() ([f8a4146](https://github.com/thi-ng/umbrella/commit/f8a414605a0d5c93fcef83ab931911c6c2f39f7d))
|
|
61
90
|
|
|
91
|
+
# 0.1.0 (2021-01-10)
|
|
62
92
|
|
|
63
|
-
###
|
|
93
|
+
### Features
|
|
64
94
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
# [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.4.2...@thi.ng/args@0.5.0) (2021-03-28)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Features
|
|
75
|
-
|
|
76
|
-
* **args:** add vec() arg type ([f05cb2a](https://github.com/thi-ng/umbrella/commit/f05cb2a6d0798ef0558775a81dba2d834308747c))
|
|
77
|
-
* **args:** wordwrap usage prefix/suffix, defaults ([325b558](https://github.com/thi-ng/umbrella/commit/325b558f74f8dbfaa2c7de72c6800cdbc8c54acd))
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
# [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.3.1...@thi.ng/args@0.4.0) (2021-03-22)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Features
|
|
87
|
-
|
|
88
|
-
* **args:** add arg groups, segment usage output ([ebf5197](https://github.com/thi-ng/umbrella/commit/ebf51974e4e1e1d5288af9ad420d4211addd95ad))
|
|
89
|
-
* **args:** support arbitrary length aliases ([1cfdf49](https://github.com/thi-ng/umbrella/commit/1cfdf49a53cca2f80836caf428e220e90f687ad1))
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## [0.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.3.0...@thi.ng/args@0.3.1) (2021-03-21)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Bug Fixes
|
|
99
|
-
|
|
100
|
-
* **args:** fix usage() show defaults logic ([ae31158](https://github.com/thi-ng/umbrella/commit/ae31158c9496d7c116ee2b4a22ca843888d2bddd))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
# [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.2.7...@thi.ng/args@0.3.0) (2021-03-20)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### Features
|
|
110
|
-
|
|
111
|
-
* **args:** update ParseOpts, UsageOpts ([6577c80](https://github.com/thi-ng/umbrella/commit/6577c806e246ecf8244b1af6a2cefc400a7eb365))
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/args@0.1.0...@thi.ng/args@0.2.0) (2021-01-13)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
### Features
|
|
121
|
-
|
|
122
|
-
* **args:** add defaultHint opt, update usage() ([f8a4146](https://github.com/thi-ng/umbrella/commit/f8a414605a0d5c93fcef83ab931911c6c2f39f7d))
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
# 0.1.0 (2021-01-10)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
### Features
|
|
132
|
-
|
|
133
|
-
* **args:** add kv args, callbacks, usage opts ([c306aba](https://github.com/thi-ng/umbrella/commit/c306abac31dc03bb15a19c36192ee5c07afa1063))
|
|
134
|
-
* **args:** add strict mode kvArgs()/coerceKV(), add docs ([b76c4f1](https://github.com/thi-ng/umbrella/commit/b76c4f11ddbe3b7c1a195a93ceed3a953666ef5d))
|
|
135
|
-
* **args:** add tuple arg type support ([a05dde9](https://github.com/thi-ng/umbrella/commit/a05dde957be54ae7ed6aeab8233bff0d8573c675))
|
|
136
|
-
* **args:** import as new package ([af5d943](https://github.com/thi-ng/umbrella/commit/af5d943153b3012be04ed0e9a044ee944465d035))
|
|
137
|
-
* **args:** major general package update ([26ec49a](https://github.com/thi-ng/umbrella/commit/26ec49afc0fa389b7a2551b116a85d95df4aaeee))
|
|
138
|
-
* **args:** update multi arg specs, parse ([dbdf913](https://github.com/thi-ng/umbrella/commit/dbdf913b4ed730c2c07246c24ecbafb32d9dc37e))
|
|
95
|
+
- **args:** add kv args, callbacks, usage opts ([c306aba](https://github.com/thi-ng/umbrella/commit/c306abac31dc03bb15a19c36192ee5c07afa1063))
|
|
96
|
+
- **args:** add strict mode kvArgs()/coerceKV(), add docs ([b76c4f1](https://github.com/thi-ng/umbrella/commit/b76c4f11ddbe3b7c1a195a93ceed3a953666ef5d))
|
|
97
|
+
- **args:** add tuple arg type support ([a05dde9](https://github.com/thi-ng/umbrella/commit/a05dde957be54ae7ed6aeab8233bff0d8573c675))
|
|
98
|
+
- **args:** import as new package ([af5d943](https://github.com/thi-ng/umbrella/commit/af5d943153b3012be04ed0e9a044ee944465d035))
|
|
99
|
+
- **args:** major general package update ([26ec49a](https://github.com/thi-ng/umbrella/commit/26ec49afc0fa389b7a2551b116a85d95df4aaeee))
|
|
100
|
+
- **args:** update multi arg specs, parse ([dbdf913](https://github.com/thi-ng/umbrella/commit/dbdf913b4ed730c2c07246c24ecbafb32d9dc37e))
|
package/README.md
CHANGED
|
@@ -54,15 +54,23 @@ individual values, e.g. `-a 1,2,3` equals `-a 1 -a 2 -a 3`
|
|
|
54
54
|
yarn add @thi.ng/args
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
ES module import:
|
|
58
|
+
|
|
57
59
|
```html
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
<script type="module" src="https://cdn.skypack.dev/@thi.ng/args"></script>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
[Skypack documentation](https://docs.skypack.dev/)
|
|
64
|
+
|
|
65
|
+
For NodeJS (v14.6+):
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
node --experimental-specifier-resolution=node --experimental-repl-await
|
|
60
69
|
|
|
61
|
-
|
|
62
|
-
<script src="https://unpkg.com/@thi.ng/args/lib/index.umd.js" crossorigin></script>
|
|
70
|
+
> const args = await import("@thi.ng/args");
|
|
63
71
|
```
|
|
64
72
|
|
|
65
|
-
Package sizes (gzipped, pre-treeshake): ESM: 2.
|
|
73
|
+
Package sizes (gzipped, pre-treeshake): ESM: 2.45 KB
|
|
66
74
|
|
|
67
75
|
## Dependencies
|
|
68
76
|
|
package/api.js
CHANGED
package/args.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { repeat } from "@thi.ng/strings";
|
|
1
|
+
import { repeat } from "@thi.ng/strings/repeat";
|
|
2
2
|
import { coerceFloat, coerceFloats, coerceHexInt, coerceHexInts, coerceInt, coerceInts, coerceJson, coerceKV, coerceOneOf, coerceTuple, } from "./coerce";
|
|
3
|
-
const $single = (coerce, hint) => (spec) => (
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
const $single = (coerce, hint) => (spec) => ({
|
|
4
|
+
coerce,
|
|
5
|
+
hint,
|
|
6
|
+
group: "main",
|
|
7
|
+
...spec,
|
|
8
|
+
});
|
|
9
|
+
const $multi = (coerce, hint) => (spec) => ({
|
|
10
|
+
hint: $hint(hint, spec.delim),
|
|
11
|
+
multi: true,
|
|
12
|
+
coerce,
|
|
13
|
+
group: "main",
|
|
14
|
+
...spec,
|
|
15
|
+
});
|
|
6
16
|
const $hint = (hint, delim) => hint + (delim ? `[${delim}..]` : "");
|
|
7
17
|
/**
|
|
8
18
|
* Returns a full {@link ArgSpec} for a boolean flag. The mere presence of this
|
|
@@ -10,7 +20,12 @@ const $hint = (hint, delim) => hint + (delim ? `[${delim}..]` : "");
|
|
|
10
20
|
*
|
|
11
21
|
* @param spec
|
|
12
22
|
*/
|
|
13
|
-
export const flag = (spec) => (
|
|
23
|
+
export const flag = (spec) => ({
|
|
24
|
+
flag: true,
|
|
25
|
+
default: false,
|
|
26
|
+
group: "flags",
|
|
27
|
+
...spec,
|
|
28
|
+
});
|
|
14
29
|
/**
|
|
15
30
|
* Returns a full {@link ArgSpec} for a string value arg.
|
|
16
31
|
*
|
|
@@ -76,7 +91,12 @@ export const ints = $multi(coerceInts, "INT");
|
|
|
76
91
|
*
|
|
77
92
|
* @param spec
|
|
78
93
|
*/
|
|
79
|
-
export const json = (spec) => (
|
|
94
|
+
export const json = (spec) => ({
|
|
95
|
+
coerce: coerceJson,
|
|
96
|
+
hint: "JSON",
|
|
97
|
+
group: "main",
|
|
98
|
+
...spec,
|
|
99
|
+
});
|
|
80
100
|
const $desc = (opts, prefix) => `${prefix ? prefix + ": " : ""}${opts.map((x) => `"${x}"`).join(", ")}`;
|
|
81
101
|
/**
|
|
82
102
|
* Returns full {@link ArgSpec} for an enum-like string value arg. The raw CLI
|
|
@@ -85,7 +105,13 @@ const $desc = (opts, prefix) => `${prefix ? prefix + ": " : ""}${opts.map((x) =>
|
|
|
85
105
|
* @param opts
|
|
86
106
|
* @param spec
|
|
87
107
|
*/
|
|
88
|
-
export const oneOf = (opts, spec) => (
|
|
108
|
+
export const oneOf = (opts, spec) => ({
|
|
109
|
+
coerce: coerceOneOf(opts),
|
|
110
|
+
hint: "ID",
|
|
111
|
+
group: "main",
|
|
112
|
+
...spec,
|
|
113
|
+
desc: $desc(opts, spec.desc),
|
|
114
|
+
});
|
|
89
115
|
/**
|
|
90
116
|
* Multi-arg version of {@link oneOf}. Returns full {@link ArgSpec} for multiple
|
|
91
117
|
* enum-like string value args. The raw CLI value strings will be automcatically
|
|
@@ -94,7 +120,14 @@ export const oneOf = (opts, spec) => (Object.assign(Object.assign({ coerce: coer
|
|
|
94
120
|
* @param opts
|
|
95
121
|
* @param spec
|
|
96
122
|
*/
|
|
97
|
-
export const oneOfMulti = (opts, spec) => (
|
|
123
|
+
export const oneOfMulti = (opts, spec) => ({
|
|
124
|
+
coerce: (xs) => xs.map(coerceOneOf(opts)),
|
|
125
|
+
hint: $hint("ID", spec.delim),
|
|
126
|
+
multi: true,
|
|
127
|
+
group: "main",
|
|
128
|
+
...spec,
|
|
129
|
+
desc: $desc(opts, spec.desc),
|
|
130
|
+
});
|
|
98
131
|
/**
|
|
99
132
|
* Returns a full {@link ArgSpec} for multiple `key=value` pair args, coerced
|
|
100
133
|
* into a result object.
|
|
@@ -107,7 +140,13 @@ export const oneOfMulti = (opts, spec) => (Object.assign(Object.assign({ coerce:
|
|
|
107
140
|
* @param spec
|
|
108
141
|
* @param delim
|
|
109
142
|
*/
|
|
110
|
-
export const kvPairs = (spec, delim = "=", strict) => (
|
|
143
|
+
export const kvPairs = (spec, delim = "=", strict) => ({
|
|
144
|
+
coerce: coerceKV(delim, strict),
|
|
145
|
+
hint: `key${delim}val`,
|
|
146
|
+
multi: true,
|
|
147
|
+
group: "main",
|
|
148
|
+
...spec,
|
|
149
|
+
});
|
|
111
150
|
/**
|
|
112
151
|
* Like {@link kvPairs}, but coerces KV pairs into a result {@link KVMultiDict}
|
|
113
152
|
* which supports multiple values per given key (each key's values are collected
|
|
@@ -117,7 +156,13 @@ export const kvPairs = (spec, delim = "=", strict) => (Object.assign({ coerce: c
|
|
|
117
156
|
* @param delim
|
|
118
157
|
* @param strict
|
|
119
158
|
*/
|
|
120
|
-
export const kvPairsMulti = (spec, delim = "=", strict) => (
|
|
159
|
+
export const kvPairsMulti = (spec, delim = "=", strict) => ({
|
|
160
|
+
coerce: coerceKV(delim, strict, true),
|
|
161
|
+
hint: `key${delim}val(s)`,
|
|
162
|
+
multi: true,
|
|
163
|
+
group: "main",
|
|
164
|
+
...spec,
|
|
165
|
+
});
|
|
121
166
|
/**
|
|
122
167
|
* Returns a full {@link ArgSpec} for a fixed `size` tuple extracted from a
|
|
123
168
|
* single value string. The individual values are delimited by `delim` and will
|
|
@@ -144,7 +189,12 @@ export const kvPairsMulti = (spec, delim = "=", strict) => (Object.assign({ coer
|
|
|
144
189
|
* @param spec
|
|
145
190
|
* @param delim
|
|
146
191
|
*/
|
|
147
|
-
export const tuple = (coerce, size, spec, delim = ",") => (
|
|
192
|
+
export const tuple = (coerce, size, spec, delim = ",") => ({
|
|
193
|
+
coerce: coerceTuple(coerce, size, delim),
|
|
194
|
+
hint: [...repeat("N", size)].join(delim),
|
|
195
|
+
group: "main",
|
|
196
|
+
...spec,
|
|
197
|
+
});
|
|
148
198
|
/**
|
|
149
199
|
* Syntax sugar for `tuple(coerceInt, size, {...}, delim)`.
|
|
150
200
|
*
|
package/coerce.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { isHex
|
|
2
|
-
import {
|
|
1
|
+
import { isHex } from "@thi.ng/checks/is-hex";
|
|
2
|
+
import { isNumericFloat, isNumericInt } from "@thi.ng/checks/is-numeric";
|
|
3
|
+
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
|
|
3
4
|
import { Tuple } from "./api";
|
|
4
5
|
export const coerceString = (x) => x;
|
|
5
6
|
export const coerceFloat = (x) => isNumericFloat(x)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/args",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Declarative, functional & typechecked CLI argument/options parser, value coercions etc.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"module": "./index.js",
|
|
6
|
-
"main": "./lib/index.js",
|
|
7
|
-
"umd:main": "./lib/index.umd.js",
|
|
8
7
|
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
@@ -24,30 +24,24 @@
|
|
|
24
24
|
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "yarn clean &&
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"build:test": "rimraf build && tsc -p test/tsconfig.json",
|
|
31
|
-
"build:check": "tsc --isolatedModules --noEmit",
|
|
32
|
-
"test": "mocha test",
|
|
33
|
-
"cover": "nyc mocha test && nyc report --reporter=lcov",
|
|
34
|
-
"clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib",
|
|
35
|
-
"doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf *.js *.d.ts *.map doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
36
30
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
|
|
37
|
-
"doc": "
|
|
38
|
-
"
|
|
31
|
+
"doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
|
|
32
|
+
"doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
|
|
33
|
+
"pub": "yarn build && yarn publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
39
35
|
},
|
|
40
36
|
"dependencies": {
|
|
41
|
-
"@thi.ng/api": "^
|
|
42
|
-
"@thi.ng/checks": "^
|
|
43
|
-
"@thi.ng/errors": "^
|
|
44
|
-
"@thi.ng/strings": "^
|
|
37
|
+
"@thi.ng/api": "^8.0.0",
|
|
38
|
+
"@thi.ng/checks": "^3.0.0",
|
|
39
|
+
"@thi.ng/errors": "^2.0.0",
|
|
40
|
+
"@thi.ng/strings": "^3.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@thi.ng/testament": "^0.1.0"
|
|
45
44
|
},
|
|
46
|
-
"files": [
|
|
47
|
-
"*.js",
|
|
48
|
-
"*.d.ts",
|
|
49
|
-
"lib"
|
|
50
|
-
],
|
|
51
45
|
"keywords": [
|
|
52
46
|
"argument",
|
|
53
47
|
"ansi",
|
|
@@ -67,9 +61,32 @@
|
|
|
67
61
|
"publishConfig": {
|
|
68
62
|
"access": "public"
|
|
69
63
|
},
|
|
70
|
-
"
|
|
64
|
+
"files": [
|
|
65
|
+
"*.js",
|
|
66
|
+
"*.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"exports": {
|
|
69
|
+
".": {
|
|
70
|
+
"import": "./index.js"
|
|
71
|
+
},
|
|
72
|
+
"./api": {
|
|
73
|
+
"import": "./api.js"
|
|
74
|
+
},
|
|
75
|
+
"./args": {
|
|
76
|
+
"import": "./args.js"
|
|
77
|
+
},
|
|
78
|
+
"./coerce": {
|
|
79
|
+
"import": "./coerce.js"
|
|
80
|
+
},
|
|
81
|
+
"./parse": {
|
|
82
|
+
"import": "./parse.js"
|
|
83
|
+
},
|
|
84
|
+
"./usage": {
|
|
85
|
+
"import": "./usage.js"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
71
88
|
"thi.ng": {
|
|
72
89
|
"year": 2018
|
|
73
90
|
},
|
|
74
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
|
|
75
92
|
}
|
package/parse.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isArray } from "@thi.ng/checks";
|
|
2
|
-
import { illegalArgs } from "@thi.ng/errors";
|
|
3
|
-
import { camel } from "@thi.ng/strings";
|
|
1
|
+
import { isArray } from "@thi.ng/checks/is-array";
|
|
2
|
+
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
|
|
3
|
+
import { camel } from "@thi.ng/strings/case";
|
|
4
4
|
import { usage } from "./usage";
|
|
5
5
|
export const parse = (specs, argv, opts) => {
|
|
6
|
-
opts =
|
|
6
|
+
opts = { start: 2, showUsage: true, help: ["--help", "-h"], ...opts };
|
|
7
7
|
try {
|
|
8
8
|
return parseOpts(specs, argv, opts);
|
|
9
9
|
}
|
package/usage.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { lengthAnsi } from "@thi.ng/strings/ansi";
|
|
2
|
+
import { capitalize, kebab } from "@thi.ng/strings/case";
|
|
3
|
+
import { padRight } from "@thi.ng/strings/pad-right";
|
|
4
|
+
import { repeat } from "@thi.ng/strings/repeat";
|
|
5
|
+
import { stringify } from "@thi.ng/strings/stringify";
|
|
6
|
+
import { SPLIT_ANSI, wordWrapLines } from "@thi.ng/strings/word-wrap";
|
|
2
7
|
import { DEFAULT_THEME } from "./api";
|
|
3
8
|
export const usage = (specs, opts = {}) => {
|
|
4
|
-
opts =
|
|
9
|
+
opts = {
|
|
10
|
+
lineWidth: 80,
|
|
11
|
+
paramWidth: 32,
|
|
12
|
+
showDefaults: true,
|
|
13
|
+
prefix: "",
|
|
14
|
+
suffix: "",
|
|
15
|
+
groups: ["flags", "main"],
|
|
16
|
+
...opts,
|
|
17
|
+
};
|
|
5
18
|
const theme = opts.color !== false
|
|
6
|
-
?
|
|
19
|
+
? { ...DEFAULT_THEME, ...opts.color }
|
|
20
|
+
: {};
|
|
7
21
|
const indent = repeat(" ", opts.paramWidth);
|
|
8
22
|
const format = (ids) => ids.map((id) => argUsage(id, specs[id], opts, theme, indent));
|
|
9
23
|
const sortedIDs = Object.keys(specs).sort();
|
|
@@ -18,7 +32,7 @@ export const usage = (specs, opts = {}) => {
|
|
|
18
32
|
return [
|
|
19
33
|
...wrap(opts.prefix, opts.lineWidth),
|
|
20
34
|
...groups.map(([gid, ids]) => [
|
|
21
|
-
...(opts.showGroupNames ? [`${gid}:\n`] : []),
|
|
35
|
+
...(opts.showGroupNames ? [`${capitalize(gid)}:\n`] : []),
|
|
22
36
|
...format(ids),
|
|
23
37
|
"",
|
|
24
38
|
].join("\n")),
|
package/lib/index.js
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var strings$1 = require('@thi.ng/strings');
|
|
6
|
-
var checks = require('@thi.ng/checks');
|
|
7
|
-
var errors = require('@thi.ng/errors');
|
|
8
|
-
|
|
9
|
-
const DEFAULT_THEME = {
|
|
10
|
-
default: 95,
|
|
11
|
-
hint: 90,
|
|
12
|
-
multi: 90,
|
|
13
|
-
param: 96,
|
|
14
|
-
required: 33,
|
|
15
|
-
};
|
|
16
|
-
class Tuple {
|
|
17
|
-
constructor(value) {
|
|
18
|
-
this.value = value;
|
|
19
|
-
}
|
|
20
|
-
deref() {
|
|
21
|
-
return this.value;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const coerceString = (x) => x;
|
|
26
|
-
const coerceFloat = (x) => checks.isNumericFloat(x)
|
|
27
|
-
? parseFloat(x)
|
|
28
|
-
: errors.illegalArgs(`not a numeric value: ${x}`);
|
|
29
|
-
const coerceFloats = (xs) => xs.map(coerceFloat);
|
|
30
|
-
const coerceHexInt = (x) => checks.isHex(x) ? parseInt(x, 16) : errors.illegalArgs(`not a hex value: ${x}`);
|
|
31
|
-
const coerceHexInts = (xs) => xs.map(coerceHexInt);
|
|
32
|
-
const coerceInt = (x) => checks.isNumericInt(x) ? parseInt(x) : errors.illegalArgs(`not an integer: ${x}`);
|
|
33
|
-
const coerceInts = (xs) => xs.map(coerceInt);
|
|
34
|
-
const coerceJson = (x) => JSON.parse(x);
|
|
35
|
-
const coerceOneOf = (xs) => (x) => xs.includes(x) ? x : errors.illegalArgs(`invalid option: ${x}`);
|
|
36
|
-
function coerceKV(delim = "=", strict = false, multi = false) {
|
|
37
|
-
return (pairs) => pairs.reduce((acc, x) => {
|
|
38
|
-
const idx = x.indexOf(delim);
|
|
39
|
-
strict &&
|
|
40
|
-
idx < 1 &&
|
|
41
|
-
errors.illegalArgs(`got '${x}', but expected a 'key${delim}value' pair`);
|
|
42
|
-
if (idx > 0) {
|
|
43
|
-
const id = x.substr(0, idx);
|
|
44
|
-
const val = x.substr(idx + 1);
|
|
45
|
-
if (multi) {
|
|
46
|
-
acc[id] ? acc[id].push(val) : (acc[id] = [val]);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
acc[id] = val;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
acc[x] = multi ? ["true"] : "true";
|
|
54
|
-
}
|
|
55
|
-
return acc;
|
|
56
|
-
}, {});
|
|
57
|
-
}
|
|
58
|
-
const coerceTuple = (coerce, size, delim = ",") => (src) => {
|
|
59
|
-
const parts = src.split(delim);
|
|
60
|
-
parts.length !== size &&
|
|
61
|
-
errors.illegalArgs(`got '${src}', but expected a tuple of ${size} values`);
|
|
62
|
-
return new Tuple(parts.map(coerce));
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const $single = (coerce, hint) => (spec) => (Object.assign({ coerce,
|
|
66
|
-
hint, group: "main" }, spec));
|
|
67
|
-
const $multi = (coerce, hint) => (spec) => (Object.assign({ hint: $hint(hint, spec.delim), multi: true, coerce, group: "main" }, spec));
|
|
68
|
-
const $hint = (hint, delim) => hint + (delim ? `[${delim}..]` : "");
|
|
69
|
-
const flag = (spec) => (Object.assign({ flag: true, default: false, group: "flags" }, spec));
|
|
70
|
-
const string = $single((x) => x, "STR");
|
|
71
|
-
const strings = $multi((x) => x, "STR");
|
|
72
|
-
const float = $single(coerceFloat, "NUM");
|
|
73
|
-
const hex = $single(coerceHexInt, "HEX");
|
|
74
|
-
const int = $single(coerceInt, "INT");
|
|
75
|
-
const floats = $multi(coerceFloats, "NUM");
|
|
76
|
-
const hexes = $multi(coerceHexInts, "HEX");
|
|
77
|
-
const ints = $multi(coerceInts, "INT");
|
|
78
|
-
const json = (spec) => (Object.assign({ coerce: coerceJson, hint: "JSON", group: "main" }, spec));
|
|
79
|
-
const $desc = (opts, prefix) => `${prefix ? prefix + ": " : ""}${opts.map((x) => `"${x}"`).join(", ")}`;
|
|
80
|
-
const oneOf = (opts, spec) => (Object.assign(Object.assign({ coerce: coerceOneOf(opts), hint: "ID", group: "main" }, spec), { desc: $desc(opts, spec.desc) }));
|
|
81
|
-
const oneOfMulti = (opts, spec) => (Object.assign(Object.assign({ coerce: (xs) => xs.map(coerceOneOf(opts)), hint: $hint("ID", spec.delim), multi: true, group: "main" }, spec), { desc: $desc(opts, spec.desc) }));
|
|
82
|
-
const kvPairs = (spec, delim = "=", strict) => (Object.assign({ coerce: coerceKV(delim, strict), hint: `key${delim}val`, multi: true, group: "main" }, spec));
|
|
83
|
-
const kvPairsMulti = (spec, delim = "=", strict) => (Object.assign({ coerce: coerceKV(delim, strict, true), hint: `key${delim}val(s)`, multi: true, group: "main" }, spec));
|
|
84
|
-
const tuple = (coerce, size, spec, delim = ",") => (Object.assign({ coerce: coerceTuple(coerce, size, delim), hint: [...strings$1.repeat("N", size)].join(delim), group: "main" }, spec));
|
|
85
|
-
const size = (size, spec, delim = "x") => tuple(coerceInt, size, spec, delim);
|
|
86
|
-
const vec = (size, spec, delim = ",") => tuple(coerceFloat, size, spec, delim);
|
|
87
|
-
|
|
88
|
-
const usage = (specs, opts = {}) => {
|
|
89
|
-
opts = Object.assign({ lineWidth: 80, paramWidth: 32, showDefaults: true, prefix: "", suffix: "", groups: ["flags", "main"] }, opts);
|
|
90
|
-
const theme = opts.color !== false
|
|
91
|
-
? Object.assign(Object.assign({}, DEFAULT_THEME), opts.color) : {};
|
|
92
|
-
const indent = strings$1.repeat(" ", opts.paramWidth);
|
|
93
|
-
const format = (ids) => ids.map((id) => argUsage(id, specs[id], opts, theme, indent));
|
|
94
|
-
const sortedIDs = Object.keys(specs).sort();
|
|
95
|
-
const groups = opts.groups
|
|
96
|
-
? opts.groups
|
|
97
|
-
.map((gid) => [
|
|
98
|
-
gid,
|
|
99
|
-
sortedIDs.filter((id) => specs[id].group === gid),
|
|
100
|
-
])
|
|
101
|
-
.filter((g) => !!g[1].length)
|
|
102
|
-
: [["options", sortedIDs]];
|
|
103
|
-
return [
|
|
104
|
-
...wrap(opts.prefix, opts.lineWidth),
|
|
105
|
-
...groups.map(([gid, ids]) => [
|
|
106
|
-
...(opts.showGroupNames ? [`${gid}:\n`] : []),
|
|
107
|
-
...format(ids),
|
|
108
|
-
"",
|
|
109
|
-
].join("\n")),
|
|
110
|
-
...wrap(opts.suffix, opts.lineWidth),
|
|
111
|
-
].join("\n");
|
|
112
|
-
};
|
|
113
|
-
const argUsage = (id, spec, opts, theme, indent) => {
|
|
114
|
-
const hint = argHint(spec, theme);
|
|
115
|
-
const alias = argAlias(spec, theme, hint);
|
|
116
|
-
const name = ansi(`--${strings$1.kebab(id)}`, theme.param);
|
|
117
|
-
const params = `${alias}${name}${hint}`;
|
|
118
|
-
const isRequired = spec.optional === false && spec.default === undefined;
|
|
119
|
-
const prefixes = [];
|
|
120
|
-
isRequired && prefixes.push("required");
|
|
121
|
-
spec.multi && prefixes.push("multiple");
|
|
122
|
-
const body = argPrefix(prefixes, theme, isRequired) +
|
|
123
|
-
(spec.desc || "") +
|
|
124
|
-
argDefault(spec, opts, theme);
|
|
125
|
-
return (strings$1.padRight(opts.paramWidth)(params, strings$1.lengthAnsi(params)) +
|
|
126
|
-
wrap(body, opts.lineWidth - opts.paramWidth)
|
|
127
|
-
.map((l, i) => (i > 0 ? indent + l : l))
|
|
128
|
-
.join("\n"));
|
|
129
|
-
};
|
|
130
|
-
const argHint = (spec, theme) => spec.hint ? ansi(" " + spec.hint, theme.hint) : "";
|
|
131
|
-
const argAlias = (spec, theme, hint) => spec.alias ? `${ansi("-" + spec.alias, theme.param)}${hint}, ` : "";
|
|
132
|
-
const argPrefix = (prefixes, theme, isRequired) => prefixes.length
|
|
133
|
-
? ansi(`[${prefixes.join(", ")}] `, isRequired ? theme.required : theme.multi)
|
|
134
|
-
: "";
|
|
135
|
-
const argDefault = (spec, opts, theme) => opts.showDefaults && spec.default != null && spec.default !== false
|
|
136
|
-
? ansi(` (default: ${strings$1.stringify(true)(spec.defaultHint != undefined
|
|
137
|
-
? spec.defaultHint
|
|
138
|
-
: spec.default)})`, theme.default)
|
|
139
|
-
: "";
|
|
140
|
-
const ansi = (x, col) => col != null ? `\x1b[${col}m${x}\x1b[0m` : x;
|
|
141
|
-
const wrap = (str, width) => str
|
|
142
|
-
? strings$1.wordWrapLines(str, {
|
|
143
|
-
width,
|
|
144
|
-
splitter: strings$1.SPLIT_ANSI,
|
|
145
|
-
hard: true,
|
|
146
|
-
})
|
|
147
|
-
: [];
|
|
148
|
-
|
|
149
|
-
const parse = (specs, argv, opts) => {
|
|
150
|
-
opts = Object.assign({ start: 2, showUsage: true, help: ["--help", "-h"] }, opts);
|
|
151
|
-
try {
|
|
152
|
-
return parseOpts(specs, argv, opts);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
if (opts.showUsage) {
|
|
156
|
-
console.log(e.message + "\n\n" + usage(specs, opts.usageOpts));
|
|
157
|
-
}
|
|
158
|
-
throw e;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
const parseOpts = (specs, argv, opts) => {
|
|
162
|
-
const aliases = aliasIndex(specs);
|
|
163
|
-
const acc = {};
|
|
164
|
-
let id;
|
|
165
|
-
let spec;
|
|
166
|
-
let i = opts.start;
|
|
167
|
-
for (; i < argv.length;) {
|
|
168
|
-
const a = argv[i];
|
|
169
|
-
if (!id) {
|
|
170
|
-
if (opts.help.includes(a)) {
|
|
171
|
-
console.log(usage(specs, opts.usageOpts));
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
const state = parseKey(specs, aliases, acc, a);
|
|
175
|
-
id = state.id;
|
|
176
|
-
spec = state.spec;
|
|
177
|
-
i = i + ~~(state.state < 2);
|
|
178
|
-
if (state.state)
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
if (parseValue(spec, acc, id, a))
|
|
183
|
-
break;
|
|
184
|
-
id = null;
|
|
185
|
-
i++;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
id && errors.illegalArgs(`missing value for: --${id}`);
|
|
189
|
-
return {
|
|
190
|
-
result: processResults(specs, acc),
|
|
191
|
-
index: i,
|
|
192
|
-
rest: argv.slice(i),
|
|
193
|
-
done: i >= argv.length,
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
const aliasIndex = (specs) => Object.entries(specs).reduce((acc, [k, v]) => (v.alias ? ((acc[v.alias] = k), acc) : acc), {});
|
|
197
|
-
const parseKey = (specs, aliases, acc, a) => {
|
|
198
|
-
if (a[0] === "-") {
|
|
199
|
-
let id;
|
|
200
|
-
if (a[1] === "-") {
|
|
201
|
-
if (a === "--")
|
|
202
|
-
return { state: 1 };
|
|
203
|
-
id = strings$1.camel(a.substr(2));
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
id = aliases[a.substr(1)];
|
|
207
|
-
!id && errors.illegalArgs(`unknown option: ${a}`);
|
|
208
|
-
}
|
|
209
|
-
const spec = specs[id];
|
|
210
|
-
!spec && errors.illegalArgs(id);
|
|
211
|
-
if (spec.flag) {
|
|
212
|
-
acc[id] = true;
|
|
213
|
-
id = undefined;
|
|
214
|
-
if (spec.fn && !spec.fn("true"))
|
|
215
|
-
return { state: 1, spec };
|
|
216
|
-
}
|
|
217
|
-
return { state: 0, id, spec };
|
|
218
|
-
}
|
|
219
|
-
return { state: 2 };
|
|
220
|
-
};
|
|
221
|
-
const parseValue = (spec, acc, id, a) => {
|
|
222
|
-
/^-[a-z]/i.test(a) && errors.illegalArgs(`missing value for: --${id}`);
|
|
223
|
-
if (spec.multi) {
|
|
224
|
-
checks.isArray(acc[id]) ? acc[id].push(a) : (acc[id] = [a]);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
acc[id] = a;
|
|
228
|
-
}
|
|
229
|
-
return spec.fn && !spec.fn(a);
|
|
230
|
-
};
|
|
231
|
-
const processResults = (specs, acc) => {
|
|
232
|
-
let spec;
|
|
233
|
-
for (let id in specs) {
|
|
234
|
-
spec = specs[id];
|
|
235
|
-
if (acc[id] === undefined) {
|
|
236
|
-
if (spec.default !== undefined) {
|
|
237
|
-
acc[id] = spec.default;
|
|
238
|
-
}
|
|
239
|
-
else if (spec.optional === false) {
|
|
240
|
-
errors.illegalArgs(`missing arg: --${id}`);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
else if (spec.coerce) {
|
|
244
|
-
coerceValue(spec, acc, id);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return acc;
|
|
248
|
-
};
|
|
249
|
-
const coerceValue = (spec, acc, id) => {
|
|
250
|
-
try {
|
|
251
|
-
if (spec.multi && spec.delim) {
|
|
252
|
-
acc[id] = acc[id].reduce((acc, x) => (acc.push(...x.split(spec.delim)), acc), []);
|
|
253
|
-
}
|
|
254
|
-
acc[id] = spec.coerce(acc[id]);
|
|
255
|
-
}
|
|
256
|
-
catch (e) {
|
|
257
|
-
throw new Error(`arg --${id}: ${e.message}`);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
exports.DEFAULT_THEME = DEFAULT_THEME;
|
|
262
|
-
exports.Tuple = Tuple;
|
|
263
|
-
exports.coerceFloat = coerceFloat;
|
|
264
|
-
exports.coerceFloats = coerceFloats;
|
|
265
|
-
exports.coerceHexInt = coerceHexInt;
|
|
266
|
-
exports.coerceHexInts = coerceHexInts;
|
|
267
|
-
exports.coerceInt = coerceInt;
|
|
268
|
-
exports.coerceInts = coerceInts;
|
|
269
|
-
exports.coerceJson = coerceJson;
|
|
270
|
-
exports.coerceKV = coerceKV;
|
|
271
|
-
exports.coerceOneOf = coerceOneOf;
|
|
272
|
-
exports.coerceString = coerceString;
|
|
273
|
-
exports.coerceTuple = coerceTuple;
|
|
274
|
-
exports.flag = flag;
|
|
275
|
-
exports.float = float;
|
|
276
|
-
exports.floats = floats;
|
|
277
|
-
exports.hex = hex;
|
|
278
|
-
exports.hexes = hexes;
|
|
279
|
-
exports.int = int;
|
|
280
|
-
exports.ints = ints;
|
|
281
|
-
exports.json = json;
|
|
282
|
-
exports.kvPairs = kvPairs;
|
|
283
|
-
exports.kvPairsMulti = kvPairsMulti;
|
|
284
|
-
exports.oneOf = oneOf;
|
|
285
|
-
exports.oneOfMulti = oneOfMulti;
|
|
286
|
-
exports.parse = parse;
|
|
287
|
-
exports.size = size;
|
|
288
|
-
exports.string = string;
|
|
289
|
-
exports.strings = strings;
|
|
290
|
-
exports.tuple = tuple;
|
|
291
|
-
exports.usage = usage;
|
|
292
|
-
exports.vec = vec;
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../api.js","../coerce.js","../args.js","../usage.js","../parse.js"],"sourcesContent":null,"names":["isNumericFloat","illegalArgs","isHex","isNumericInt","repeat","kebab","padRight","lengthAnsi","stringify","wordWrapLines","SPLIT_ANSI","camel","isArray"],"mappings":";;;;;;;;AAAY,MAAC,aAAa,GAAG;AAC7B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,IAAI,EAAE,EAAE;AACZ,IAAI,KAAK,EAAE,EAAE;AACb,IAAI,KAAK,EAAE,EAAE;AACb,IAAI,QAAQ,EAAE,EAAE;AAChB,EAAE;AAIK,MAAM,KAAK,CAAC;AACnB,IAAI,WAAW,CAAC,KAAK,EAAE;AACvB,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,KAAK;AACL,IAAI,KAAK,GAAG;AACZ,QAAQ,OAAO,IAAI,CAAC,KAAK,CAAC;AAC1B,KAAK;AACL;;ACdY,MAAC,YAAY,GAAG,CAAC,CAAC,KAAK,EAAE;AACzB,MAAC,WAAW,GAAG,CAAC,CAAC,KAAKA,qBAAc,CAAC,CAAC,CAAC;AACnD,MAAM,UAAU,CAAC,CAAC,CAAC;AACnB,MAAMC,kBAAW,CAAC,CAAC,qBAAqB,EAAE,CAAC,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,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AAC9F,SAAS;AACT,QAAQ,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd,QAAQ,MAAM,IAAI,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACrD,KAAK;AACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/strings"),require("@thi.ng/checks"),require("@thi.ng/errors")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/strings","@thi.ng/checks","@thi.ng/errors"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.args={}),e.thi.ng.strings,e.thi.ng.checks,e.thi.ng.errors)}(this,(function(e,t,i,s){"use strict";const n={default:95,hint:90,multi:90,param:96,required:33};class r{constructor(e){this.value=e}deref(){return this.value}}const a=e=>i.isNumericFloat(e)?parseFloat(e):s.illegalArgs(`not a numeric value: ${e}`),l=e=>e.map(a),o=e=>i.isHex(e)?parseInt(e,16):s.illegalArgs(`not a hex value: ${e}`),c=e=>e.map(o),u=e=>i.isNumericInt(e)?parseInt(e):s.illegalArgs(`not an integer: ${e}`),g=e=>e.map(u),p=e=>JSON.parse(e),h=e=>t=>e.includes(t)?t:s.illegalArgs(`invalid option: ${t}`);function f(e="=",t=!1,i=!1){return n=>n.reduce(((n,r)=>{const a=r.indexOf(e);if(t&&a<1&&s.illegalArgs(`got '${r}', but expected a 'key${e}value' pair`),a>0){const e=r.substr(0,a),t=r.substr(a+1);i?n[e]?n[e].push(t):n[e]=[t]:n[e]=t}else n[r]=i?["true"]:"true";return n}),{})}const d=(e,t,i=",")=>n=>{const a=n.split(i);return a.length!==t&&s.illegalArgs(`got '${n}', but expected a tuple of ${t} values`),new r(a.map(e))},m=(e,t)=>i=>Object.assign({coerce:e,hint:t,group:"main"},i),b=(e,t)=>i=>Object.assign({hint:$(t,i.delim),multi:!0,coerce:e,group:"main"},i),$=(e,t)=>e+(t?`[${t}..]`:""),O=m((e=>e),"STR"),j=b((e=>e),"STR"),v=m(a,"NUM"),x=m(o,"HEX"),A=m(u,"INT"),k=b(l,"NUM"),y=b(c,"HEX"),I=b(g,"INT"),w=(e,t)=>`${t?t+": ":""}${e.map((e=>`"${e}"`)).join(", ")}`,N=(e,i,s,n=",")=>Object.assign({coerce:d(e,i,n),hint:[...t.repeat("N",i)].join(n),group:"main"},s),T=(e,i={})=>{const s=!1!==(i=Object.assign({lineWidth:80,paramWidth:32,showDefaults:!0,prefix:"",suffix:"",groups:["flags","main"]},i)).color?Object.assign(Object.assign({},n),i.color):{},r=t.repeat(" ",i.paramWidth),a=t=>t.map((t=>W(t,e[t],i,s,r))),l=Object.keys(e).sort(),o=i.groups?i.groups.map((t=>[t,l.filter((i=>e[i].group===t))])).filter((e=>!!e[1].length)):[["options",l]];return[...D(i.prefix,i.lineWidth),...o.map((([e,t])=>[...i.showGroupNames?[`${e}:\n`]:[],...a(t),""].join("\n"))),...D(i.suffix,i.lineWidth)].join("\n")},W=(e,i,s,n,r)=>{const a=H(i,n),l=`${S(i,n,a)}${M(`--${t.kebab(e)}`,n.param)}${a}`,o=!1===i.optional&&void 0===i.default,c=[];o&&c.push("required"),i.multi&&c.push("multiple");const u=q(c,n,o)+(i.desc||"")+E(i,s,n);return t.padRight(s.paramWidth)(l,t.lengthAnsi(l))+D(u,s.lineWidth-s.paramWidth).map(((e,t)=>t>0?r+e:e)).join("\n")},H=(e,t)=>e.hint?M(" "+e.hint,t.hint):"",S=(e,t,i)=>e.alias?`${M("-"+e.alias,t.param)}${i}, `:"",q=(e,t,i)=>e.length?M(`[${e.join(", ")}] `,i?t.required:t.multi):"",E=(e,i,s)=>i.showDefaults&&null!=e.default&&!1!==e.default?M(` (default: ${t.stringify(!0)(null!=e.defaultHint?e.defaultHint:e.default)})`,s.default):"",M=(e,t)=>null!=t?`[${t}m${e}[0m`:e,D=(e,i)=>e?t.wordWrapLines(e,{width:i,splitter:t.SPLIT_ANSI,hard:!0}):[],F=(e,t,i)=>{const n=U(e),r={};let a,l,o=i.start;for(;o<t.length;){const s=t[o];if(a){if(_(l,r,a,s))break;a=null,o++}else{if(i.help.includes(s))return void console.log(T(e,i.usageOpts));const t=P(e,n,r,s);if(a=t.id,l=t.spec,o+=~~(t.state<2),t.state)break}}return a&&s.illegalArgs(`missing value for: --${a}`),{result:J(e,r),index:o,rest:t.slice(o),done:o>=t.length}},U=e=>Object.entries(e).reduce(((e,[t,i])=>i.alias?(e[i.alias]=t,e):e),{}),P=(e,i,n,r)=>{if("-"===r[0]){let a;if("-"===r[1]){if("--"===r)return{state:1};a=t.camel(r.substr(2))}else a=i[r.substr(1)],!a&&s.illegalArgs(`unknown option: ${r}`);const l=e[a];return!l&&s.illegalArgs(a),l.flag&&(n[a]=!0,a=void 0,l.fn&&!l.fn("true"))?{state:1,spec:l}:{state:0,id:a,spec:l}}return{state:2}},_=(e,t,n,r)=>(/^-[a-z]/i.test(r)&&s.illegalArgs(`missing value for: --${n}`),e.multi?i.isArray(t[n])?t[n].push(r):t[n]=[r]:t[n]=r,e.fn&&!e.fn(r)),J=(e,t)=>{let i;for(let n in e)i=e[n],void 0===t[n]?void 0!==i.default?t[n]=i.default:!1===i.optional&&s.illegalArgs(`missing arg: --${n}`):i.coerce&&L(i,t,n);return t},L=(e,t,i)=>{try{e.multi&&e.delim&&(t[i]=t[i].reduce(((t,i)=>(t.push(...i.split(e.delim)),t)),[])),t[i]=e.coerce(t[i])}catch(e){throw new Error(`arg --${i}: ${e.message}`)}};e.DEFAULT_THEME=n,e.Tuple=r,e.coerceFloat=a,e.coerceFloats=l,e.coerceHexInt=o,e.coerceHexInts=c,e.coerceInt=u,e.coerceInts=g,e.coerceJson=p,e.coerceKV=f,e.coerceOneOf=h,e.coerceString=e=>e,e.coerceTuple=d,e.flag=e=>Object.assign({flag:!0,default:!1,group:"flags"},e),e.float=v,e.floats=k,e.hex=x,e.hexes=y,e.int=A,e.ints=I,e.json=e=>Object.assign({coerce:p,hint:"JSON",group:"main"},e),e.kvPairs=(e,t="=",i)=>Object.assign({coerce:f(t,i),hint:`key${t}val`,multi:!0,group:"main"},e),e.kvPairsMulti=(e,t="=",i)=>Object.assign({coerce:f(t,i,!0),hint:`key${t}val(s)`,multi:!0,group:"main"},e),e.oneOf=(e,t)=>Object.assign(Object.assign({coerce:h(e),hint:"ID",group:"main"},t),{desc:w(e,t.desc)}),e.oneOfMulti=(e,t)=>Object.assign(Object.assign({coerce:t=>t.map(h(e)),hint:$("ID",t.delim),multi:!0,group:"main"},t),{desc:w(e,t.desc)}),e.parse=(e,t,i)=>{i=Object.assign({start:2,showUsage:!0,help:["--help","-h"]},i);try{return F(e,t,i)}catch(t){throw i.showUsage&&console.log(t.message+"\n\n"+T(e,i.usageOpts)),t}},e.size=(e,t,i="x")=>N(u,e,t,i),e.string=O,e.strings=j,e.tuple=N,e.usage=T,e.vec=(e,t,i=",")=>N(a,e,t,i),Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../api.js","../coerce.js","../args.js","../usage.js","../parse.js"],"sourcesContent":null,"names":["isNumericFloat","illegalArgs","isHex","isNumericInt","repeat","kebab","padRight","lengthAnsi","stringify","wordWrapLines","SPLIT_ANSI","camel","isArray"],"mappings":";;;;;;AAAY,UAAC,aAAa,GAAG;IAC7B,IAAI,OAAO,EAAE,EAAE;IACf,IAAI,IAAI,EAAE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