diff --git a/src/main.ts b/src/main.ts index 09493d0..1463070 100644 --- a/src/main.ts +++ b/src/main.ts @@ -39,7 +39,7 @@ scan2paperless \\ const tempDir = await Deno.makeTempDir(); const device = args.d || args.device || Deno.env.get('SCANNER_DEFAULT_DEVICE'); - const outputDir = args.d || args.device || Deno.env.get('SCANNER_OUTPUT_DIR'); + const outputDir = args.o || args.outputDir || Deno.env.get('SCANNER_OUTPUT_DIR'); const outputName = args._[0] || getRandomString(); const pagesToScanStr = args.n || args.pages;