-m param without args list modes

This commit is contained in:
Tomáš Mládek 2021-09-18 12:11:03 +02:00
parent e9bc9f568d
commit 86c9644972

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