From f5043efce21c1639c84182fc91214c513852ccdc Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 7 Mar 2022 22:46:09 +0100 Subject: [PATCH] Add the --include-defaults flag. --- source/driftingnebula.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/driftingnebula.ts b/source/driftingnebula.ts index cd1ecab..c3156ca 100644 --- a/source/driftingnebula.ts +++ b/source/driftingnebula.ts @@ -13,6 +13,8 @@ import d2022_03_07 from './2022-03-07.js'; async function main(): Promise { const noRender = process.argv.includes('--no-render'); + const includeDefaults = process.argv.includes('--include-defaults'); + const projects: Project[] = [d2022_03_06, d2022_03_07]; for (const {name, operations, resolution} of projects) { @@ -27,9 +29,9 @@ async function main(): Promise { console.log(`* ${operations.length} operations`); const graph = operations.flatMap((operation) => { - const graph = operation.graph(); + const graph = operation.graph(includeDefaults); if (operation.appendCrop) { - graph.push(...new Crop({height, width}).graph()); + graph.push(...new Crop({height, width}).graph(includeDefaults)); } return graph;