-m param without args list modes

master
Tomáš Mládek 2021-09-18 12:11:03 +02:00
parent e9bc9f568d
commit 86c9644972
1 changed files with 5 additions and 0 deletions

View File

@ -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),