From f2c56009b5108f13dc16195f9c83c641d4565485 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 3 Dec 2023 01:04:54 +0900 Subject: [PATCH] help --- main.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index f15d5d0..9a4ce60 100644 --- a/main.ts +++ b/main.ts @@ -171,7 +171,15 @@ const options = { console.log( [ "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" && "=", + ] + .filter(Boolean) + .join(""), + ), ].join("\n"), ); },