Compare commits
3 commits
4eb03c0c0d
...
1440ea2c5e
Author | SHA1 | Date | |
---|---|---|---|
1440ea2c5e | |||
f2c56009b5 | |||
a9d9ba82f8 |
4 changed files with 15 additions and 6 deletions
|
@ -9,8 +9,8 @@ $ npx https://git.fogtype.com/nebel/gadl/archive/main.tar.gz --help
|
||||||
|
|
||||||
## Supported Sites
|
## Supported Sites
|
||||||
|
|
||||||
- [x] DMM ブックス (漫画)
|
- DMM ブックス (漫画)
|
||||||
- [ ] Google Play ブックス (漫画)
|
- Google Play ブックス (漫画)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
11
main.ts
11
main.ts
|
@ -159,6 +159,7 @@ const options = {
|
||||||
},
|
},
|
||||||
version: {
|
version: {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
|
short: "v",
|
||||||
run() {
|
run() {
|
||||||
console.log(pkg.version);
|
console.log(pkg.version);
|
||||||
},
|
},
|
||||||
|
@ -170,7 +171,15 @@ const options = {
|
||||||
console.log(
|
console.log(
|
||||||
[
|
[
|
||||||
"Available options:",
|
"Available options:",
|
||||||
...Object.keys(options).map((option) => ` --${option}`),
|
...Object.entries(options).map((option) =>
|
||||||
|
[
|
||||||
|
` --${option[0]}`,
|
||||||
|
"short" in option[1] && ` -${option[1].short}`,
|
||||||
|
option[1].type === "string" && "=<value>",
|
||||||
|
]
|
||||||
|
.filter(Boolean)
|
||||||
|
.join(""),
|
||||||
|
),
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@fogtype/gadl",
|
"name": "@fogtype/gadl",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@fogtype/gadl",
|
"name": "@fogtype/gadl",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fflate": "^0.8.1",
|
"fflate": "^0.8.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@fogtype/gadl",
|
"name": "@fogtype/gadl",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": "bin/run.js",
|
"bin": "bin/run.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue