help
This commit is contained in:
parent
a9d9ba82f8
commit
f2c56009b5
1 changed files with 9 additions and 1 deletions
10
main.ts
10
main.ts
|
@ -171,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"),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue