This commit is contained in:
Nebel 2023-12-03 01:04:54 +09:00
parent a9d9ba82f8
commit f2c56009b5
Signed by: nebel
GPG key ID: 79807D08C6EF6460

10
main.ts
View file

@ -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"),
); );
}, },