From 86c9644972f73bdd418b89e2f6ed02dfd3c47794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 18 Sep 2021 12:11:03 +0200 Subject: [PATCH] -m param without args list modes --- cli/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/main.ts b/cli/main.ts index bf0b0cd..0af73bb 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -19,6 +19,11 @@ const args = parse(Deno.args, { }, }); +if (args["mode"] === true){ + console.log(collageModeType.join(", ")); + Deno.exit(0); +} + const files: string[] = []; const includeExtensions = Array.from( String(args["include"] || "*.png, *.jpg").matchAll(/\*\.([\w]+)/g),