diff --git a/bin/auto-reveal.js b/bin/auto-reveal.js index 01bff4b..793925e 100755 --- a/bin/auto-reveal.js +++ b/bin/auto-reveal.js @@ -63,6 +63,15 @@ program program .command('build') .description('Build a static copy of your presentation.') - .action(() => build(config)); + .option('-o, --outDir ', 'Output directory', config.build.outDir) + .action((options) => + build({ + ...config, + build: { + ...config.build, + outDir: path.resolve(cwd, options.outDir) ?? config.build.outDir, + }, + }), + ); program.parse();